Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 392 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 392 Bytes

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