NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection
1.0.0
dotnet add package NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection --version 1.0.0
NuGet\Install-Package NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection -Version 1.0.0
<PackageReference Include="NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection" Version="1.0.0" />
<PackageVersion Include="NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection" Version="1.0.0" />
<PackageReference Include="NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection" />
paket add NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection --version 1.0.0
#r "nuget: NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection, 1.0.0"
#:package NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection@1.0.0
#addin nuget:?package=NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection&version=1.0.0
#tool nuget:?package=NetCoreBackend.NArchitecture.Core.Persistence.DependencyInjection&version=1.0.0
Core.Persistence.DependencyInjection
Veritabanı migration'larını otomatik uygulayan servisin DI kaydı.
Kurulum
// Program.cs
builder.Services.AddDbMigrationApplier<AppDbContext>();
DbMigrationApplierManager<TDbContext>, hem IDbMigrationApplierService hem de IDbMigrationApplierService<TDbContext> olarak transient kaydedilir. DbContext, factory'ler çağrıldığında uygulamanın gerçek IServiceProvider'ından scoped olarak çözülür.
Migration Uygulama
Servisi çalıştırmak için Core.Persistence.WebApi extension metodunu kullanın:
app.UseDbMigrationApplier();
Bu, uygulama başlarken bekleyen migration'ları otomatik olarak çalıştırır (Database.Migrate()).
| 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
- Microsoft.EntityFrameworkCore (>= 10.0.5)
- Microsoft.EntityFrameworkCore.InMemory (>= 10.0.5)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.5)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Caching.Memory (>= 10.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- NetCoreBackend.NArchitecture.Core.Persistence (>= 1.0.0)
- System.Linq.Dynamic.Core (>= 1.7.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 59 | 6/2/2026 |