ict.ken.be

 

Posts in Category: Linq

Using NOLOCK in Linq to SQL 

Categories: .Net Linq SQL Server

using (var txn = new TransactionScope(TransactionScopeOption.Required,

new TransactionOptions { IsolationLevel = IsolationLevel.ReadUncommitted } ))

{

// Your nolock LINQ to SQL query goes here

}

more: Hanselman on NOLOCK with Linq