Answer: EF Core Relationship many tables with one with non using FK



This content originally appeared on DEV Community and was authored by Zayn Tariq

To set up relationships in Entity Framework (EF) using the Fluent API, you need to understand that EF Core requires foreign key properties to establish relationships. However, since you have multiple entities referencing the same table using a non-foreign key field (Owner), you can achieve the desired result by configuring…


This content originally appeared on DEV Community and was authored by Zayn Tariq