NOLOCK [英] NOLOCK

查看:100
本文介绍了NOLOCK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在评估EF4,我的DBA说我们必须在所有SELECT语句中使用NOLOCK提示。 我不想就是否这是一个好主意进行辩论。 我正在做我被告知要做的事。  ;)
我已经阅读了关于如何在EF4中实现这一点的不同想法,但所有这些看起来都是一种解决方案而不是微软或EF4批准的。  什么是官方微软对使用LINQ to SQL和EF4时希望其SELECT语句包含NOLOCK提示的人的响应?

谢谢。

解决方案

< blockquote> http://www.hanselman.com/blog/GettingLINQToSQLAndLINQToEntitiesToUseNOLOCK.aspx

We're evaluating EF4 and my DBA says we must use the NOLOCK hint in all our SELECT statements.  I don't want to get into a debate over whether this is a good idea or not.  I'm doing what I've been told to do.  ;)

I've read the different ideas on how to make this happen in EF4, but all seem like a work around and not sanctioned by Microsoft or EF4.  What is the official Microsoft response to someone who wants their SELECT statement to include the NOLOCK hint when using LINQ to SQL and EF4?

Thanks.

解决方案

http://www.hanselman.com/blog/GettingLINQToSQLAndLINQToEntitiesToUseNOLOCK.aspx


这篇关于NOLOCK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆