Configure Keys
Configure primary and composite keys.
Goal
Set up entity keys using JD.Domain configuration DSL.
Steps
- Primary key:
.HasKey(c => c.Id) - Composite key:
.HasKey(oi => new { oi.OrderId, oi.ProductId }) - Alternate key:
.HasAlternateKey(c => c.Email)