navigation property
A property on an EF Core entity that points to related entities, such as an order's customer or lines.
In more detail
EF Core uses them together with foreign keys to load related data. Returning entities with navigation properties can serialise far more data than intended, another reason to map to response records.
Related terms
- entity — A thing in an application's domain with its own identity, such as a user, account or product, usually stored in a database.
- foreign key — A column holding another table's primary key value, which the database guarantees points at a row that exists.
- object mapping — Copying data from one type to another across a boundary, such as from a database entity to an API response record.
Taught in
- Manual Object Mapping — Modern .NET Core, C# & Enterprise Microservices