This explains how you can configure One-To-One, One-to-Many, Many-To-Many entity relationships using Fluent API in Entity Framework Core. Configuring these relationships between entities are important for the implementation of code first approach.
Fluent API provides HasRequired, WithOptional, HasRequired, HasMany, WithRequiredPrincipal, WithMany method to configure different relationships between entities.
- Entity folder has different entity, relationship between these entities are configured using Fluent API.
- Migrations/initial has migration related scripts.
For more information on configuring ER relations using Fluent API [click here] (https://geeksarray.com/blog/how-to-configure-entity-relationships-using-fluent-api-in-entity-framework)