开发者

How to pass existing SqlTransaction and SqlConnection to an ObjectContext

开发者 https://www.devze.com 2023-03-17 00:35 出处:网络
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 ObjectContex

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号