| 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
Extension methods on Microsoft.EntityFrameworkCore.ModelBuilder that apply the standard Cat table setup.
public static class ModelBuilderExtensions
Inheritance System.Object → ModelBuilderExtensions
| Methods | |
|---|---|
| ConfigureCatEntity<TEntity>(this ModelBuilder, string, string, Action<EntityTypeBuilder<TEntity>>) | Configures an entity with an explicit table name and schema. |
| ConfigureCatEntity<TEntity>(this ModelBuilder, string, string, Action<EntityTypeBuilder<TEntity>>, Action<TableBuilder<TEntity>>) | |
| ConfigureCatEntity<TEntity>(this ModelBuilder, string, Action<EntityTypeBuilder<TEntity>>) | Configures an entity with an explicit table name. The schema comes from the model and falls back to dbo. |
| ConfigureCatEntity<TEntity>(this ModelBuilder, Action<EntityTypeBuilder<TEntity>>) | Configures an entity with the table name and schema already known to the model. The schema falls back to dbo. Sets the non-clustered primary key on Id and a unique clustered index on the identity column SequenceId. |
| ConfigureCatReferenceEntity<TEntity>(this ModelBuilder, string, string) | Configures an entity that maps a table owned by someone else. Sets a non-clustered primary key and excludes the table from migrations. Use it to define foreign keys to a table of another service in a shared database. |
| 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. |