IDocumentSession.SaveChanges () vs. Transactions

The raven ( IDocumentSession) client does not send anything to the server until it is called SaveChanges. So this can be seen as an implementation of UnitOfWork, right?

Do I correctly believe that the only difference between SaveChangesand Transaction.Commitis that the latter rolls back all changes if something failed during the commit?

+5
source share
2 answers

If you perform one operation, there is no need to use an explicit transaction, as it SaveChangesleads to an implicit transaction.

System.Transactions, , .. SaveChanges, . Raven http .

: http://ravendb.net/documentation/docs-api-transactions

+7

jgauffin, SaveChanges() , , , , . System.Transactions, .

+6

All Articles