© 2026 Hedgehog Software, LLC

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

✅ Repository Pattern question.

While incorporating the Repository Pattern should the repository class itself remain as agnostic as possible and only rely on the functions passed through from the database context class making it as agnostic as possible or should it include code tightly bound to the database context, i.e. actual code to manipulate the database.
More or less what I'm trying to say if the code for actually interacting with the database (CRUD operations) should come from the database context and or be in the repository itself (assume I'm using a local, self-contained NoSQL database).
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

❔ Repository pattern
C#CC# / help
3y ago
✅ CQRS and Repository pattern
C#CC# / help
4mo ago
Problems with Repository Pattern
C#CC# / help
7mo ago
Repository pattern, any advice ?
C#CC# / help
15mo ago