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 withConfigureByConvention(). - 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 theDbMigratorconsole app.