摘要: http://msdn.microsoft.com/en-us/library/bb738523.aspxThis topic provides an example of how to define a transaction that coordinates making changes to objects in an object context with other external operations. For more information, see Managing Connections and Transactions. The example in this t... 阅读全文
posted @ 2011-10-11 10:39 ido 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: Most of the time the Entity Framework (EF) can manage transactions for you. Every time you Add an Entity, Delete an Entity, Change an Entity, Create a Relationship or Delete a Relationship in your .NET code, these changes are remembered by the EF, and when you call SaveChanges()these are convert... 阅读全文
posted @ 2011-10-11 10:36 ido 阅读(6654) 评论(2) 推荐(1) 编辑