| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.EFCORE | |
|||||
Code Reference
» Cat.EFCore.Extensions Assembly » Cat.EFCore.Extensions Namespace » ModelBuilderExtensions Class
ModelBuilderExtensions.ConfigureCatTemporalEntity Method
| Overloads | |
|---|---|
| ConfigureCatTemporalEntity<TEntity>(this ModelBuilder, string, string, Action<EntityTypeBuilder<TEntity>>) | Configures a temporal entity with an explicit table name and schema. The history table gets the same name in the History schema. |
| ConfigureCatTemporalEntity<TEntity>(this ModelBuilder, string, Action<EntityTypeBuilder<TEntity>>) | Configures a temporal entity with an explicit table name. The schema comes from the model and falls back to dbo. |
| ConfigureCatTemporalEntity<TEntity>(this ModelBuilder, Action<EntityTypeBuilder<TEntity>>) | Configures a temporal entity with the table name and schema already known to the model. The history table gets the same name in the History schema. |
ModelBuilderExtensions.ConfigureCatTemporalEntity<TEntity>(this ModelBuilder, string, string, Action<EntityTypeBuilder<TEntity>>) Method
Configures a temporal entity with an explicit table name and schema.
The history table gets the same name in the History schema.
public static void ConfigureCatTemporalEntity<TEntity>(this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string tableName, string schemaName, System.Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>>? entityTypeBuildAction=null)
where TEntity : Cat.EFCore.Entities.CatTemporalEntityBase;
Type parameters
TEntity
The entity type.
Parameters
modelBuilder Microsoft.EntityFrameworkCore.ModelBuilder
The model builder to configure.
tableName System.String
The name of the table.
schemaName System.String
The name of the schema.
entityTypeBuildAction System.Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>>
Optional extra configuration for the entity.
ModelBuilderExtensions.ConfigureCatTemporalEntity<TEntity>(this ModelBuilder, string, Action<EntityTypeBuilder<TEntity>>) Method
Configures a temporal entity with an explicit table name.
The schema comes from the model and falls back to dbo.
public static void ConfigureCatTemporalEntity<TEntity>(this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string tableName, System.Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>>? entityTypeBuildAction=null)
where TEntity : Cat.EFCore.Entities.CatTemporalEntityBase;
Type parameters
TEntity
The entity type.
Parameters
modelBuilder Microsoft.EntityFrameworkCore.ModelBuilder
The model builder to configure.
tableName System.String
The name of the table.
entityTypeBuildAction System.Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>>
Optional extra configuration for the entity.
ModelBuilderExtensions.ConfigureCatTemporalEntity<TEntity>(this ModelBuilder, Action<EntityTypeBuilder<TEntity>>) Method
Configures a temporal entity with the table name and schema already known to the model.
The history table gets the same name in the History schema.
public static void ConfigureCatTemporalEntity<TEntity>(this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>>? entityTypeBuildAction=null)
where TEntity : Cat.EFCore.Entities.CatTemporalEntityBase;
Type parameters
TEntity
The entity type.
Parameters
modelBuilder Microsoft.EntityFrameworkCore.ModelBuilder
The model builder to configure.
entityTypeBuildAction System.Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>>
Optional extra configuration for the entity.
Exceptions
System.Exception
The entity type has no table name in the model.