ef-core-integration

Installation
SKILL.md

ABP EF Core Integration

Guidance for the EF Core data-access layer of an ABP solution. Types live in Volo.Abp.EntityFrameworkCore. The EF Core integration lives in the *.EntityFrameworkCore project; repository interfaces belong in the *.Domain project.

When to Use

  • Defining an AbpDbContext<TDbContext> and mapping entities with ConfigureByConvention().
  • Registering the DbContext and repositories with AddAbpDbContext (AddDefaultRepositories, AddRepository).
  • Writing a custom repository over EfCoreRepository<TDbContext, TEntity, TKey>.
  • Reaching the active DbContext through IDbContextProvider<TDbContext> inside a repository.
  • Setting up code-first migrations (dotnet ef migrations) and running the DbMigrator console app.

When Not to Use

Installs
24
GitHub Stars
32
First Seen
Sep 5, 2026