Skip to content

Consider implementing a generic Repository pattern #80

Closed
@nanotaboada

Description

@nanotaboada

Description

While EF Core’s DbContext provides some Repository-like features:

A DbContext instance represents a session with the database and can be used to query and save instances of your entities.
DbContext is a combination of the Unit Of Work and Repository patterns.

Consider implementing a more explicit generic Repository pattern to standardize data access and make the codebase more flexible for future changes.

Acceptance Criteria

  • Implement a generic repository for common CRUD operations.
  • Refactor existing Service layer to use the Repository pattern.
  • Write tests to verify Repository functionality.

Resources

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .NET codeenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions