0

My app uses a single DBContext to query a DB that is constantly being updated by other processes on the server (window services etc).

In order to make sure I get current and not cached values I use .AsNoTracking() with all my Linq to SQL queries.

I fid that quite tedious, is there a way to set tracking to disabled on the DBContext itself once ?

kofifus
  • 14,411
  • 12
  • 82
  • 140

0 Answers0