Astronaut.Modules.EntityFrameworkCore
10.2.0
See the version list below for details.
dotnet add package Astronaut.Modules.EntityFrameworkCore --version 10.2.0
NuGet\Install-Package Astronaut.Modules.EntityFrameworkCore -Version 10.2.0
<PackageReference Include="Astronaut.Modules.EntityFrameworkCore" Version="10.2.0" />
<PackageVersion Include="Astronaut.Modules.EntityFrameworkCore" Version="10.2.0" />
<PackageReference Include="Astronaut.Modules.EntityFrameworkCore" />
paket add Astronaut.Modules.EntityFrameworkCore --version 10.2.0
#r "nuget: Astronaut.Modules.EntityFrameworkCore, 10.2.0"
#:package Astronaut.Modules.EntityFrameworkCore@10.2.0
#addin nuget:?package=Astronaut.Modules.EntityFrameworkCore&version=10.2.0
#tool nuget:?package=Astronaut.Modules.EntityFrameworkCore&version=10.2.0
Astronaut.Modules.EntityFrameworkCore
SDK EF Core para módulos Astronaut. Las entidades permanecen libres de contratos
de infraestructura y sus mappings usan directamente IEntityTypeConfiguration<TEntity>.
public sealed class Order
{
public Guid Id { get; set; }
}
public sealed class OrderConfiguration : IEntityTypeConfiguration<Order>
{
public void Configure(EntityTypeBuilder<Order> builder) => builder.HasKey(x => x.Id);
}
public interface ISalesContext
{
DbSet<Order> Orders { get; }
}
Astronaut asocia las configuraciones con el módulo por assembly. Cuando un assembly
contiene varios módulos, el host debe usar AddModuleEntityConfigurations<TModule>()
para declarar el ownership explícitamente.
| 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
- Astronaut.Abstractions (>= 10.2.0)
- Microsoft.EntityFrameworkCore (>= 10.0.9)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Astronaut.Modules.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Astronaut.Storage.EntityFrameworkCore
Central Entity Framework Core storage for Astronaut modules, transactions, outbox and inbox |
GitHub repositories
This package is not used by any popular GitHub repositories.