efcore
efcore copied to clipboard
Turn Tracking by global to off? : Question
Is it possible to change Tracking global to off so that I dont have to call the methode AsNoTracking() on every "get" call
+1
There is a DbContext.ChangeTracker.QueryTrackingBehavior property. If you want no tracking by default, then you can set it to QueryTrackingBehavior.NoTracking in the context constructor.