ObjectContextManager and Transactions - What is it for?

ObjectContextManager and Transactions - What is it for?

Old forum URL: forums.lhotka.net/forums/t/7270.aspx


g18c posted on Monday, July 13, 2009

Dear all, apolagies in advance as i cant see clearly or understand what ObjectContextManager class is doing apart from reusing the connection for my EF connection.

Silly question i have no doubt, but why would we want to do this?

Despite reading Calsa 2 book from cover to cover a good year ago my memory is now a little blank.

Appreciate suggestions, many thanks in advance.

Regards,

Chris

ajj3085 replied on Tuesday, July 14, 2009

Well, that is exactly the point.. an easy way for the root and its child objects to share the same connection (thus keeping the Transactionscope transaction in simple mode) without putting it into some applicationcontext or passing it around.

Copyright (c) Marimer LLC