Entity Framework Core for Beginners: Point of Sale Console App - Part 14 - Many-To-Many Relationship

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ •

  • @Lonchanick
    @Lonchanick Рік тому

    Hey dude! Thanks again!
    It's a little hard to understand how you implement (with EF obviously) the many to many relationship here .. an explanation with raw SQL would be great!

    • @thecacademy5376
      @thecacademy5376  Рік тому +1

      There are many ways to do it in EF. All of them (as far as I know) create a third table to manage that relationship. That table will contain the Ids for the related tables and they'll be foreign keys.