I noticed that it is possible to disable tracking in three different ways:
- via
AsNoTrackingon context properties - via
AsNoTrackingon the final query before executing it - via
context.ChangeTracker.QueryTrackingBehavior
Is there any difference between these three approaches if I want to disable tracking for everything?
If I previously used AsNoTracking after each context property and now I replace it with only a single call on the final query (or disable it via the ChangeTracker) will it have the same effect?