View on GitHub
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

CatReferenceEntityBase Class

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.

public class CatReferenceEntityBase

Inheritance System.Object → CatReferenceEntityBase

Properties  
Id Gets or sets the unique id of the entity. It is the non-clustered primary key.