Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haritha99ch/genericrepositorypattern-example
Example of implementing an Advance Generic-Typed Repositor in .NET. This contains implementation of Specification pattern and Selector pattern.
https://github.com/haritha99ch/genericrepositorypattern-example
dotnet dotnet8 entity-framework entity-framework-core generic-repository microsoft-sql-server repository repository-pattern selector-pattern specification-pattern sql
Last synced: about 1 month ago
JSON representation
Example of implementing an Advance Generic-Typed Repositor in .NET. This contains implementation of Specification pattern and Selector pattern.
- Host: GitHub
- URL: https://github.com/haritha99ch/genericrepositorypattern-example
- Owner: haritha99ch
- License: mit
- Created: 2023-10-05T10:07:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-19T09:33:06.000Z (about 1 year ago)
- Last Synced: 2024-10-13T07:22:20.780Z (3 months ago)
- Topics: dotnet, dotnet8, entity-framework, entity-framework-core, generic-repository, microsoft-sql-server, repository, repository-pattern, selector-pattern, specification-pattern, sql
- Language: C#
- Homepage: https://gist.github.com/haritha99ch/f7f3e90562395c5f95f3898e0570f041
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.Md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://gist.github.com/haritha99ch/f7f3e90562395c5f95f3898e0570f041)
## Setup
### Prerequisite
1. .NET 8 installed on your computer. You can download .NET 8 from the official website ().
2. An integrated development environment (IDE) to write your code
3. Git installed on your computer.### Initial setup
1. Clone the project.
```shell
git clone https://github.com/haritha99ch/GenericRepositoryPattern-Example.git
```2. [Set Environment variables](./src/Example.AppSettings/README.md#setting-environment-variables).
3. Install all the dependencies.
```shell
dotnet restore
```4. Build the project.
```shell
dotnet build
```5. Run the project.
```shell
dotnet run --project ./src/Example.Presentation/
```