clintirving / entity-framework-you

MIT License
4 stars 2 forks source link

Add No-Tracking on Search and Get for better performance. #41

Closed clintirvingEAX closed 1 year ago

clintirvingEAX commented 1 year ago

Available in EF 6 this excludes result sets from tracking.

Since these methods close the context before returning the result set there's really no need to have tracking enabled.

https://learn.microsoft.com/en-us/ef/ef6/querying/no-tracking

This is also used in EF Core so is future relevant.