开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜