KamiSama.Repositories.EntityFrameworkCore
10.0.11.8
See the version list below for details.
dotnet add package KamiSama.Repositories.EntityFrameworkCore --version 10.0.11.8
NuGet\Install-Package KamiSama.Repositories.EntityFrameworkCore -Version 10.0.11.8
<PackageReference Include="KamiSama.Repositories.EntityFrameworkCore" Version="10.0.11.8" />
<PackageVersion Include="KamiSama.Repositories.EntityFrameworkCore" Version="10.0.11.8" />
<PackageReference Include="KamiSama.Repositories.EntityFrameworkCore" />
paket add KamiSama.Repositories.EntityFrameworkCore --version 10.0.11.8
#r "nuget: KamiSama.Repositories.EntityFrameworkCore, 10.0.11.8"
#:package KamiSama.Repositories.EntityFrameworkCore@10.0.11.8
#addin nuget:?package=KamiSama.Repositories.EntityFrameworkCore&version=10.0.11.8
#tool nuget:?package=KamiSama.Repositories.EntityFrameworkCore&version=10.0.11.8
KamiSama.Repositories.EntityFrameworkCore
Version: 10.0.0
Description
Entity Framework Core repositories, paging, database initialization, and multi-provider DbContext registration. Use it for tracked repository access, migration and seed workflows, or configuration-selected provider contexts.
How to use
dotnet add package KamiSama.Repositories.EntityFrameworkCore --version 10.0.0
Register the base context from configuration, set one shared migration-history table, and add each installed concrete provider context through its generic extension:
using KamiSama.Repositories.EntityFrameworkCore;
using KamiSama.Repositories.EntityFrameworkCore.Postgresql;
using KamiSama.Repositories.EntityFrameworkCore.Sqlite;
services.AddMultiProviderDbContext<AppDbContext>(configuration.GetSection("Database"))
.WithMigrationHistoryTable("__AppMigrationsHistory")
.AddPostgresql<PostgresqlAppDbContext>()
.AddSqlite<SqliteAppDbContext>();
Configuration uses the provider and connection-string keys. Provider lookup lowercases the configured value, and installed providers register exact postgresql or sqlite keys. Contexts and the keyed base-context alias are scoped. Provider packages enable lazy-loading proxies and apply the configured migration-history table.
DbRepository<TEntity> borrows its context, does not dispose it, tracks queries by default, and saves every mutation immediately. MakePagedAsync<T> requires caller-supplied deterministic ordering, counts synchronously without cancellation, then materializes asynchronously in a separate query. Initializer stages run sequentially without a transaction supplied by the base class.
Namespaces
- KamiSama.Repositories.EntityFrameworkCore (6 types)
- KamiSama.Repositories.EntityFrameworkCore.Initialization (2 types)
Types
- KamiSama.Repositories.EntityFrameworkCore.DbRepository<TEntity, TDbContext> - EF Core repository over a borrowed
DbContext. Queries track by default, every mutation saves immediately, and repository disposal does not dispose the context. - KamiSama.Repositories.EntityFrameworkCore.DbRepository<TEntity> - EF Core repository over a borrowed
DbContext. Queries track by default, every mutation saves immediately, and repository disposal does not dispose the context. - KamiSama.Repositories.EntityFrameworkCore.IMultiProviderDbContextBuilder - Carries the services, configuration-selected provider, base context type, and migration-history table used by concrete provider registration extensions.
- KamiSama.Repositories.EntityFrameworkCore.IMultiProviderDbContextBuilder<TBaseContext> - Carries the services, configuration-selected provider, base context type, and migration-history table used by concrete provider registration extensions.
- KamiSama.Repositories.EntityFrameworkCore.IQueryableExtensions - Pages EF Core queries using caller-supplied ordering. It synchronously counts all matches before cancellable asynchronous materialization, using two separate database queries.
- KamiSama.Repositories.EntityFrameworkCore.ServiceCollectionExtensions - Binds
providerandconnection-string, then adds scoped keyed resolution for an application-facing base context. Concrete provider packages must register the lowercased configured key. - KamiSama.Repositories.EntityFrameworkCore.Initialization.DatabaseInitializerBase<TDbContext> - Runs selected migration, application-data, and test-data stages sequentially for an EF Core context. Derived initializers implement both seed hooks and can use
TryAddfor immediate conditional persistence. - KamiSama.Repositories.EntityFrameworkCore.Initialization.DefaultDatabaseInitializer<TDbContext> - Migration-only EF Core initializer. Migration runs when selected, while application-data and test-data stages complete without performing work.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- KamiSama.Extensions.Core (>= 10.0.11.8)
- KamiSama.Repositories.Core (>= 10.0.11.8)
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.11)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
NuGet packages (14)
Showing the top 5 NuGet packages that depend on KamiSama.Repositories.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
KamiSama.Chassis.Commons
Reusable feature and repository base classes for common CRUD-style application flows. Use this package when building service-layer features around entities, DTOs, repositories, and paged results. |
|
|
Polareum.Commons.Repositories
Package Description |
|
|
Polareum.Contents.Core
Package Description |
|
|
KamiSama.Repositories.EntityFrameworkCore.Sqlite
SQLite registration for KamiSama multi-provider Entity Framework Core DbContexts. |
|
|
KamiSama.Repositories.EntityFrameworkCore.Postgresql
PostgreSQL registration for KamiSama multi-provider Entity Framework Core DbContexts. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.11.9 | 333 | 8/24/2026 |
| 10.0.11.8 | 413 | 8/22/2026 |
| 10.0.11.7 | 417 | 8/21/2026 |
| 10.0.11.6 | 392 | 8/19/2026 |
| 10.0.11.5 | 350 | 8/18/2026 |
| 10.0.11.4 | 353 | 8/18/2026 |
| 10.0.11.3 | 332 | 8/18/2026 |
| 10.0.11.2 | 317 | 8/18/2026 |
| 10.0.11.1 | 247 | 8/15/2026 |
| 10.0.11 | 208 | 8/11/2026 |
| 10.0.10.2 | 224 | 8/4/2026 |
| 10.0.10.1 | 117 | 7/31/2026 |
| 10.0.10 | 269 | 7/30/2026 |
| 10.0.9 | 212 | 6/20/2026 |
| 10.0.7 | 876 | 5/1/2026 |
| 10.0.6 | 397 | 4/16/2026 |
| 10.0.1 | 421 | 11/26/2025 |
| 10.0.0 | 281 | 11/22/2025 |
| 3.1.6 | 284 | 11/7/2025 |
| 3.1.5 | 280 | 11/6/2025 |