Skip to content

farhadzm/EFCoreWithNoLock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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();