Working with repositories
The Repository pattern is a common approach to abstract the data access code from the other services of your application. In the next sections, you will learn how to use ABP Framework's generic repositories for your entities to query or manipulate data in the database using pre-defined repository methods. You will also see how to create custom repositories when you need to extend the generic repositories and add your own repository methods to encapsulate your data access logic.
Integrating Database Providers
Database provider integration should be done to use repositories. We will do this in the EF Core integration and MongoDB integration sections of this chapter.
Generic repositories
Once you have an entity, you can directly inject and use the generic repository for that entity. Here is an example class that uses a repository:
using System; using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.DependencyInjection...