© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
70 replies
Dropps

❔ efcore and repositorys

in what scenarios does it make sense to use repositorys withhin ef core?

i have a api layer project and a application layer project now my question is do i expose the dbcontext to the api project directly or should i introduce a repository pattern? i generally dont think it makes much sense to use repositorys as efcore basically has its own implementation for that with the DbSet<T> classes

what are your suggestions?
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
Next page

Similar Threads

Efcore Dynamic Linq, AND and OR
C#CC# / help
4mo ago
EFCore: ComplexProperty, OwnedTypes and Relational
C#CC# / help
5mo ago
✅ EFCore Nullability and Circular References
C#CC# / help
4y ago
SQL EFCore
C#CC# / help
2y ago