Entity Framework write lock on select

有没有什么办法让Entity Framework用写入锁生成选择查询:SELECT ... FOR UPDATE?


The first result of googling for "entity framework linq select with lock" gave the answer you want. Check this out: http://social.msdn.microsoft.com/forums/en-US/adodotnetentityframework/thread/5219035b-aaa9-4917-b2f2-852b5d8449ea/

Here's an idea though. You can create a stored procedure where you select with lock. Then call that stored procedure via entity framework's generated context.

链接地址: http://www.djcxy.com/p/5480.html

上一篇: 在Django的Kwargs

下一篇: 实体框架在select上写入锁定