Skip to content

Instantly share code, notes, and snippets.

@hossien014
Created February 2, 2024 10:49
Show Gist options
  • Save hossien014/ca61e270a693f76959c02ef6f25abea7 to your computer and use it in GitHub Desktop.
Save hossien014/ca61e270a693f76959c02ef6f25abea7 to your computer and use it in GitHub Desktop.
The default tracking behavior can be changed at the context instance level:
context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
var blogs = context.Blogs.ToList();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment