Both RowVersion and ID are 0.
There is nothing special about my code. Perhaps I should mention that this
method is part of a WCF Service?
public void SaveMatrixSettings(EnMatrixType matrixtype, IList<DtoMatrixColumn>
viewmatrixcolumnitems)
{
Log.Debug("SaveMatrixSettings invoked.");
try
{
using (ISession session = SessionFactory.OpenSession())
{
using (ITransaction tx = session.BeginTransaction())
{
EntMatrixColumn mc = new EntMatrixColumn
{
DefaultIndex = 20,
DefaultWidth = 100,
HeaderText = "Header",
IsDefault = false,
MatrixColumnType = EnMatrixColumnType.Text,
MatrixType = EnMatrixType.Address,
Name = "Header",
Text = "Header",
ToolTipText = "Header",
};
session.SaveOrUpdate(mc);
tx.Commit();
}
}
}
catch (Exception err)
{
string errmessage = err.GetInnerExceptionMessages();
Log.Error(string.Format("{0}:{1}{2}", "SaveMatrixSettings",
Environment.NewLine, errmessage));
throw new FaultException<MatrixServiceFault>(new MatrixServiceFault {
Message = errmessage });
}
}
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.