| 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.Entities Assembly
Cat.EFCore.Entities Namespace
Provides the base classes for Entity Framework Core entities: regular entities, temporal entities and entities that map tables owned by someone else.
| Classes | |
|---|---|
| CatEntityBase | Base class for entities that live in a regular table. It gives every entity a unique id and a database generated sequence number. |
| CatReferenceEntityBase | Base class for entities that map a table owned by someone else. Use it when the table belongs to another service, or to another part of the system, in a database you share. Map the entity in your own DbContext so you can define foreign keys and navigations to it. The table is excluded from migrations, so the owner keeps control of the schema. Treat the entity as read-only, and do not use it for your own tables. Use CatEntityBase for those. |
| CatTemporalEntityBase | Base class for entities that live in a temporal table. The database keeps the history of every change in a separate history table. |