Entity Framework 7 - Inheritance

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 20

  • @CodingTutorialsAreGo
    @CodingTutorialsAreGo  2 ปีที่แล้ว +2

    Which features of Entity Framework 7 have you been looking forward to most? Let me know.
    Source code available at: github.com/JasperKent/String-Things
    Remember to subscribe at th-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
    And if you liked the video, click the 👍.

  • @niloomon
    @niloomon 10 หลายเดือนก่อน +2

    I like how clearly you made everything, thanks a million

  • @Brendan2Alexander
    @Brendan2Alexander ปีที่แล้ว +1

    God bless your soul! U have no idea how much spaghetti you have helped me clean up.

  • @PeacefulMindss
    @PeacefulMindss 2 ปีที่แล้ว +1

    Thank you sir for going into EF new stuff and describing it, I liked the third option they gave us, and yes it contradicts the database normalization principles, but it's a case expected to happen, database normalization principles mentioned few cases when denormalization is a must.

  • @davidwhite2011
    @davidwhite2011 2 ปีที่แล้ว +2

    Another great present for Christmas!

  • @matthewbaier766
    @matthewbaier766 ปีที่แล้ว +1

    This is exactly what I was looking for. Thank you

  • @wordlifejohn1122
    @wordlifejohn1122 3 หลายเดือนก่อน

    Excellent video sir. Thank you.

  • @goverdhanjayaram3683
    @goverdhanjayaram3683 9 หลายเดือนก่อน +1

    Thank you very much ! Awesome explanation!!

  • @laptoprecaia.k.aagentsmith3328
    @laptoprecaia.k.aagentsmith3328 ปีที่แล้ว +1

    Great explanation. Thank you sir.

  • @hearyourmood9633
    @hearyourmood9633 ปีที่แล้ว +1

    thanks a lot sir, you made it very clear

  • @SirBenJamin_
    @SirBenJamin_ 11 หลายเดือนก่อน +1

    Would this work with a one to one (twoway) relationship? e.g an abstract pet base class, with two subclasses (Dog and Cat), and then having the Pet class reference its Owner, and the Owner class reference a single pet? ... specifically one to one, I appreciate that in the real world an owner would have one to many pets, but I would like it to work with just one to one.

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  11 หลายเดือนก่อน

      Not really anything to do with the inheritance. To have a one-to-one relationship between Pet and Owner, just put in a reference from Owner to Pet and a reference from Pet to owner. It will eb bi-directional and one-two-one. I think it's covered here: th-cam.com/video/eHT6G912po0/w-d-xo.html

  • @kwstaslalaounis3212
    @kwstaslalaounis3212 ปีที่แล้ว +1

    Perfect tutorial thank you.

  • @iAndrewMontanai
    @iAndrewMontanai ปีที่แล้ว +1

    Here we implicitly make 1:N relationship between Owner and Pets right?

  • @after2003
    @after2003 2 ปีที่แล้ว +1

    Great video as usual. How about observablecollections for future videos?

  • @haroldpepete
    @haroldpepete ปีที่แล้ว

    how i make tpt with collection? i have several pictures related to a user and contract table, how could i dp a polymorphic associations with a collection?

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  ปีที่แล้ว

      How is that different from the Owner with a collection of Pets example?

    • @haroldpepete
      @haroldpepete ปีที่แล้ว

      @@CodingTutorialsAreGo tpt makes de join upside down, pictures should have the foreingkey not user or contract table, you should see how ruby on rails does polymorphic association, that's the right way. you can't do a tpt with collection, you can access just a single element in the association, only a one picture in my case and not a colection a pictures