© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
11 replies
Core

✅ EF: how to structure same EF select query with no tracking?

Hello,
I need the exact same select query with and without tracking. Should I implement it in 2 separate methods or a single method with a
bool
bool
parameter that would determine if the query will use tracking or not (e.g.
SelectSomething(enableTracking = true)
SelectSomething(enableTracking = true)
)?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Ef tracking issue
C#CC# / help
4y ago
✅ Ef Query
C#CC# / help
3y ago
How to structure query functions in services
C#CC# / help
3y ago
❔ Optimizing EF query
C#CC# / help
3y ago