Popular Posts

Sunday, January 22, 2012

DbContext.SaveChanges - Don't AcceptChangesDuringSave

Something has to be sacrificed in every release of EF and this time it is transactions! ... some hidden way of exposing the SaveOptions while using the DBContext IObjectContextAdapter interface.


Howeve, it turns out that we don't need to use the SaveOptions anymore if dealing with SQL server 2008. In SQL server 2008 using the TransactionScope DOES NOT escalates the transaction to Distributed Transaction anymore. Wrapping up more than one DBContexts inside a TransactionScope works fine!

DbContext.SaveChanges - Don't AcceptChangesDuringSave:

'via Blog this'

No comments:

Post a Comment