Skip to content

Example of implementing an Advance Generic-Typed Repositor in .NET. This contains implementation of Specification pattern and Selector pattern.

License

Notifications You must be signed in to change notification settings

haritha99ch/GenericRepositoryPattern-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entity Framework: Advance Generic Repository Pattern .NET (Specification, Selector)

Introduction

This is an example of implementing an Enhanced Generic Repository pattern in .NET. The project includes implementation of Entity Framework with generic repository including specification pattern an selector pattern.

Selector pattern

Selector pattern is a novel approach for Type-Safe Data Selection in generic repository. Read more

Setup

Prerequisite

  1. .NET 8 installed on your computer. You can download .NET 8 from the official website (https://dotnet.microsoft.com/download/dotnet/8.0).
  2. An integrated development environment (IDE) to write your code
  3. Git installed on your computer.

Initial setup

  1. Clone the project.

    git clone https://github.com/haritha99ch/GenericRepositoryPattern-Example.git
  2. Set Environment variables.

  3. Install all the dependencies.

    dotnet restore
  4. Build the project.

    dotnet build
  5. Run the project.

    dotnet run --project ./src/Example.Presentation/