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

answer re: EF Core Relationship many tables with one with non using FK

Jul 31 ’24

0


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


Print Share Comment Cite Upload Translate Updates
APA

Zayn Tariq | Sciencx (2024-07-31T12:23:34+00:00) Answer: EF Core Relationship many tables with one with non using FK. Retrieved from https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/

MLA
" » Answer: EF Core Relationship many tables with one with non using FK." Zayn Tariq | Sciencx - Wednesday July 31, 2024, https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/
HARVARD
Zayn Tariq | Sciencx Wednesday July 31, 2024 » Answer: EF Core Relationship many tables with one with non using FK., viewed ,<https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/>
VANCOUVER
Zayn Tariq | Sciencx - » Answer: EF Core Relationship many tables with one with non using FK. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/
CHICAGO
" » Answer: EF Core Relationship many tables with one with non using FK." Zayn Tariq | Sciencx - Accessed . https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/
IEEE
" » Answer: EF Core Relationship many tables with one with non using FK." Zayn Tariq | Sciencx [Online]. Available: https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/. [Accessed: ]
rf:citation
» Answer: EF Core Relationship many tables with one with non using FK | Zayn Tariq | Sciencx | https://www.scien.cx/2024/07/31/answer-ef-core-relationship-many-tables-with-one-with-non-using-fk/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.