API
HasForeignKey
Selects dependent foreign key properties.
Formal Syntax & Structure
csharp syntaxcsharp
builder.HasForeignKey(b => b.CategoryId)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.builder.HasForeignKey(b => b.CategoryId)