20. Many-to-Many Relationships in Entity Framework Core

Ervis Trupja
Ervis Trupja
38.1 هزار بار بازدید - 4 سال پیش - ======================================📌 Complete Course:
======================================
📌 Complete Course: https://bit.ly/3bJawaZ
📌 Github repository: https://bit.ly/3apXvCH
=====================================

✅ Many-To-Many Relationship occurs when records in Table A have many linked records in Table B and vice versa.
✅ In Many-to-Many Relationships, you need to add an additional Entity/Table named Join Entity/Table which stores the relations between Table A and Table B
✅ Entity Framework Core allows you to use the navigation properties in your model to load related entities

===================================
You can also watch my courses on:
🎯 Udemy: http://bit.ly/2MaEA5r​​​​​​​​
🎯 LinkedIn Learning: https://bit.ly/2NJ5PEF​​​​​​​​
🎯 Pluralsight: http://bit.ly/2EsgjlJ​​​​​​​​
===================================

#aspnetcore​ #webapi​ #csharp​ #onetomany​ #databaserelationships​ #efcore​ #entityframework​ #entityframeworkcore

0:00 - Introduction
1:03 - Adding Author model
2:05 - Adding Book_Author join model
3:33 - Many-to-Many database schema overview
4:34 - Adding navigation properties for Book and Author models
5:17 - Using Fluent API to define model relations
8:45 - Adding a new migration and migration overview
10:25 - Updating database and database relations overview
11:00 - The end
4 سال پیش در تاریخ 1399/11/21 منتشر شده است.
38,184 بـار بازدید شده
... بیشتر