Entity Framework - Relationships: One-to-One, Many-to-Many, One-to-Many

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 7

  • @ScholarHat
    @ScholarHat  10 месяцев назад

    You can get a FREE demo class and see for yourself if ScholarHat's training is right for you! 👉
    www.scholarhat.com/training/net-certification-training

  • @srujansanga2689
    @srujansanga2689 6 месяцев назад +1

    you haven't declared it as primary key but declared it as foreign key, how come it's gonna act as both PK and FK

  • @owaiskhanafridi1149
    @owaiskhanafridi1149 Год назад

    thanks for your video. BTW why did you choose to make AddressId both a PK and FK ? Couldn't you just keep the AddressId a PK for Address table and make additional EmployeeId column in Address table which can act as an FK referencing the Employees table ?

    • @ScholarHat
      @ScholarHat  Год назад

      It's just for explaining the concepts. The relationships can be changed.

    • @owaiskhanafridi1149
      @owaiskhanafridi1149 Год назад

      @@ScholarHat okay thanks

    • @rajesh35hsp
      @rajesh35hsp 8 месяцев назад

      @@ScholarHat this was confusing