Hi why will It not perform my save in this method?

        public override void BeforeTransactionCompletion(ITransaction
tx)
        {
            base.BeforeTransactionCompletion(tx);
            var newChangeSetNumber =
                (from changeset in CurrentSession.Linq<Changeset>()
orderby changeset.Number ascending select
changeset.Number).FirstOrDefault() + 1;

            CurrentChangeset.Close(newChangeSetNumber);
            CurrentSession.Save(CurrentChangeset);
            CurrentChangeset = null;
        }

The linq query is executing fine but it would perform any save
attempts, not seing anything in nh prof either no sql query nothing.

What Im doing is beforetransactionbegin createing an changeset class
that will track all changes or new objects of a special kind and then
save that information with an versionnumber in the database. So if
anyone has another better solution your are welcome, but for now is it
possible to do an save attempt inside this method?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to