Dinesh Kumar
asked on
entity framework No LOCK
Does following entity framework code implements WITH (NOLOCK) by default.
if not how can I add it.
is this good option to follow i.e. WITH (NOLOCK) when only 100 concurrent select is required and nothing else
if not how can I add it.
public List<String> GetClientsList()
{
using (var context = new CMContainer())
{
return context.Clients.Select(col => col.ClientNo).ToList();
}
}
is this good option to follow i.e. WITH (NOLOCK) when only 100 concurrent select is required and nothing else
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
return context.Clients.Select(col
transactionScope.Complete(