How to pass existing SqlTransaction and SqlConnection to an ObjectContext
I am using Ef4 (POCO). My application uses both traditional SQLConnection as well as EF4. In my applicati开发者_运维技巧on, i need to pass existing SqlTransaction and SqlConnection to the ObjectContext. How shall i do it.
Please let me know.
Thanks
You can't pass your existing Sql Transaction into the ObjectContext, you need to either write the queries again in Entity Sql or LINQ to entities.
精彩评论