Tapis.Core.Infrastructure
1.0.4
See the version list below for details.
dotnet add package Tapis.Core.Infrastructure --version 1.0.4
NuGet\Install-Package Tapis.Core.Infrastructure -Version 1.0.4
<PackageReference Include="Tapis.Core.Infrastructure" Version="1.0.4" />
<PackageVersion Include="Tapis.Core.Infrastructure" Version="1.0.4" />
<PackageReference Include="Tapis.Core.Infrastructure" />
paket add Tapis.Core.Infrastructure --version 1.0.4
#r "nuget: Tapis.Core.Infrastructure, 1.0.4"
#:package Tapis.Core.Infrastructure@1.0.4
#addin nuget:?package=Tapis.Core.Infrastructure&version=1.0.4
#tool nuget:?package=Tapis.Core.Infrastructure&version=1.0.4
Tapis.Core.Infrastructure
ASP.NET Core middleware, EF Core audit/concurrency interceptorları, Refit ürün API client'ları, permission attribute'ları, TapisExceptionHandler, IServiceExceptionHandler uygulaması ve isteğe bağlı Elasticsearch ILogger sağlayıcısı (AddTapisElasticsearch).
Tapis.Core.Shared üzerine ProjectReference.
1.0.4'ten itibaren Guid damga üreten VersiyonSaveChangesInterceptor ve
modelBuilder.ConfigureVersiyonluEntities() uzantısı kaldırıldı: damga
PostgreSQL'in xmin sistem sütunu (PERSISTENCE-STANDARDS §8).
Yerine modelBuilder.ConfigureXminConcurrency() geldi. Ürün DbContext'i bunu
OnModelCreating sonunda, kendi yapılandırmalarından sonra çağırır:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
// ... ürünün kendi yapılandırmaları
modelBuilder.ConfigureXminConcurrency();
}
Uzantı tabloya eşlenmiş her entity'ye xmin gölge özelliğini concurrency
token olarak bağlar; owned, anahtarsız ve türetilmiş TPH tiplerini atlar.
Satıra yeni bir sütun eklenmez — xmin PostgreSQL'in zaten tuttuğu sistem
sütunudur.
Paket Npgsql'e bağımlı değildir: Npgsql'in UseXminAsConcurrencyToken()
yardımcısı 10.0.0'da kaldırıldığı için eşleme elle kuruluyor ve kullanılan
API'lerin hepsi EF Core / EF Relational.
Audit interceptor (AuditSaveChangesInterceptor) ve
IServiceExceptionHandler değişmedi.
Target Framework
- .NET 10
Installation
dotnet add package Tapis.Core.Infrastructure
| 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
- Elastic.Extensions.Logging (>= 9.0.0)
- Microsoft.EntityFrameworkCore (>= 10.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.10)
- Refit (>= 8.0.0)
- Tapis.Core.Shared (>= 2.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Breaking: Guid Versiyon SaveChanges interceptor ve ConfigureVersiyonluEntities model builder uzantısı kaldırıldı; yerine ConfigureXminConcurrency geldi — damga artık PostgreSQL xmin sistem sütunu (PERSISTENCE-STANDARDS §8). Eşleme Core'da duruyor ki Master ve ServiceManagement aynı kodu ayrı ayrı yazmasın. Npgsql bağımlılığı eklenmedi: Npgsql'in UseXminAsConcurrencyToken yardımcısı 10.0.0'da kaldırıldığı için eşleme zaten elle kuruluyor ve kullanılan API'lerin hepsi EF Core / EF Relational. Audit interceptor ve service exception handler değişmedi.