Hi Everyone,
I have some fundamental questions about the RhinoCommons UnitOfWork
and Transactions. I searched the web for some of these answers but I
still don’t quite understand it.
//My guess is that UnitOfWork.CurrentSession.BeginTransaction() and
//UnitOfWork.CurrentSession.Transaction.Commit();
//are equal to With.Transaction(()=> ) correct? I really don’t just
want to make an assumption.
//”Is CurrentSession” referring to the UnitOfWork of the application?
Need more of an explanation
UnitOfWork.CurrentSession.BeginTransaction(); //Is beginning
transaction necessary?
UnitOfWork.CurrentSession.Transaction.Commit();
using(UnitOfWork.Start()){ //Does creating a new UnitOfWork
automatically begin a transactions?
//Whats the reason that I would want to create a new
unit of work?
UnitOfWork.Current.BeginTransaction();//Is this neccessary?
UnitOfWork.Current.TransactionFlush();//"Current" refering the
UnitOfWork just created?
}
I just need and explanation on the proper usage and don't just want to
go of off what I perceive I understand.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en.