A Versatile Repository Framework for EF Core and Beyond
Ghanavats.Repository is a complete repository framework designed to streamline and standardise data access layers in modern applications. Built on best practices and principles of abstraction, it provides a flexible and extensible solution for developers to implement repositories tailored to their needs.
A package offering repository interfaces and abstractions to define consistent data access contracts, suitable for any implementation.
A concrete implementation of the abstractions using Entity Framework Core, offering ready-to-use, production-quality repositories. With its modular design, Ghanavats.Repository empowers developers to use its components individually or together, depending on their project requirements.
- Abstractions for Flexibility: Define data access contracts with the Ghanavats.Repository.Abstractions package, providing a clear separation of concerns and enabling custom implementations.
- Entity Framework Core Integration: Leverage a robust, pre-built repository layer with Ghanavats.Repository, optimised for EF Core.
- Customizability: Build your own repository implementations while adhering to a consistent interface.
- Future-Ready: The solution is designed to evolve, with plans to add MongoDB support and extend beyond relational databases.
-
Install the Packages:
Add the desired NuGet packages to your project:
- For abstractions:
dotnet add package Ghanavats.Repository.Abstractions
- For EF Core implementation:
dotnet add package Ghanavats.Repository
- For abstractions:
-
Choose Your Approach:
- Use Ghanavats.Repository for EF Core-based projects.
- Implement your custom repository logic by referencing Ghanavats.Repository.Abstractions.
-
Define Your Domain: Use the provided interfaces to set up repositories for your domain entities, ensuring a clean, maintainable architecture.
Ghanavats.Repository is an actively maintained and continuously evolving solution. We are committed to enhancing its functionality and ensuring it remains a versatile and reliable framework for data access needs. Community feedback and suggestions are highly valued as we work to make this library even more robust and feature-rich.
We welcome contributions to enhance the Ghanavats.Repository framework! If you have ideas, suggestions, or code improvements, feel free to create an issue or submit a pull request.