-
Notifications
You must be signed in to change notification settings - Fork 13
Installation
EasyRepository.EFCore
includes a simple installation.
You can start the generic repository implementation by installing the EasyRepository.EFCore.Generic
library in your project.
You can download the related library from Nuget.
With the EasyRepository.EFCore.Generic
library, you can now easily perform your repository operations.
These operations are as follows;
- Insert Operations
- Update Operations
- Hard Delete Operations
- Soft Delete Operations
- Any Operations
- Include Operations
- Select Operations
- Replace Operations
- Dynamic Where Query (with AutoFilterer)
- Pagination Operations (with AutoFilterer)
- Sort Operations (with AutoFilterer)
- Manual Filter
- Count Operations
After installing the EasyRepository.EFCore.Generic
library on your project via Nuget
, all you need to do is to configure the following in Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.ApplyEasyRepository<TDbContext>()
}
You can change the Service Lifetime
value according to the DbContext Lifetime
value in your project. By default, Transient
is set.
public void ConfigureServices(IServiceCollection services)
{
services.ApplyEasyRepository<TDbContext>(ServiceLifetime.Scoped);
}
Now you are ready for EasyRepository
, let's use it
Welcome to the EasyRepository.EFCore
wiki!
Topics:
-
Getting Started
-
Implementations
-
Specification
-
Ardalis.Specification & EasyRepository.EFCore