Skip to content

kentkost/EFCoreWithNoLock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

EFCoreWithNoLock

You can read data from DataBase by EntityFrameworkCore when Table is locked by another process. in this case you read UnCommited data from DataBase

Example

var categories = dbContext.Categories
                          .AsNoTracking()
                          .Where(a => a.IsDelete == false)
                          .ToListWithNoLockAsync();

About

Enable WITH(NOLOCK) on entity framework queries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%