Entity Framework Core Part 12 - Inheritance

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Coding Tutorial: Inheritance is commonplace in O-O programs, but isn't a feature of an RDBMS. There are some tried and tested techniques for mapping the two together, and EF implements them seamlessly.
    Source code available at: github.com/JasperKent/Entity-...
  • Věda a technologie

Komentáře • 40

  • @CodingTutorialsAreGo
    @CodingTutorialsAreGo  Před 3 lety +7

    This is the last video on EF from me for a while, but if you want to know about other aspects, let me know.
    You can find the source code at github.com/JasperKent/Entity-Framework-Inheritance
    For more on EF, subscribe at czcams.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
    And give it a 👍 to show you liked it.

  • @sushilvisual
    @sushilvisual Před rokem +2

    Your way of teaching is very Good

  • @treasurenkonyana2745
    @treasurenkonyana2745 Před 3 lety +5

    Why is it so hard to find videos like these on CZcams. Thank you so much

  • @javierpetrozzi
    @javierpetrozzi Před 5 měsíci +1

    Thanks! Very clear with a good example.

  • @MobilePhone-mc8zi
    @MobilePhone-mc8zi Před 2 lety +5

    Brilliant series of videos, easily one of my 2 recommendations for people who have the ability to explain concepts in great detail whilst getting straight to the point.

  • @SpyrosMetallinos
    @SpyrosMetallinos Před rokem +3

    Hands down the best series of tutorials I've encountered for entity framework. You sir have an amazing way of presenting and clarifying these concepts, to the point where questions forming in my head were the very next thing that was being explained

  • @andrevandergraaf7403
    @andrevandergraaf7403 Před 8 měsíci +1

    Thank you for this splendid tutorial!

  • @rezakhakpour7549
    @rezakhakpour7549 Před 3 lety +2

    thank you, now i know basics about inheritance support in EF

  • @cymes1
    @cymes1 Před 2 lety +1

    Great video, many thanks for sharing your knowledge

  • @hanh.trinh.yeu.thuong
    @hanh.trinh.yeu.thuong Před 2 lety +1

    Thank you very much for all great video lessons you make for people like me! They are all very useful! Very appreciated!!!

  • @RedPanda-ej2pn
    @RedPanda-ej2pn Před 2 lety +1

    Thank-you for the excellent tutorial. I've learnt much!

  • @brianarmendariz8484
    @brianarmendariz8484 Před 2 lety +1

    Just what I needed. Thanks mate!

  • @kintermezo
    @kintermezo Před 3 lety +3

    Sir, thank you so much. Its hard to find recent and good quality videos about EF, not only in the visual sight, but also with a good presenter like you. Your channel deserves way more viewers.
    I might ask, do you have any intention to continue this playlist? I would like to see the development of a Restful API, with EF Core. Greetings from Brazil.

  • @gravious
    @gravious Před rokem +1

    Great series, thank you so much :)

  • @hannahbaker411
    @hannahbaker411 Před 2 lety +1

    greate series thank you for this tutorial

  • @laptoprecaia.k.aagentsmith3328

    Hi Jasper, thank you. Could you make a video about DbContext inheritence?

  • @burek9657
    @burek9657 Před 3 lety +2

    I get error that entity type cannot be mapped to a table because it is derived from 'BaseClass'. Only base entities can be mapped to a table.
    How do i fix this?

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  Před 3 lety

      Hi Burek, I'm afraid I'd need a bit more detail to understand what the problem is.

    • @burek9657
      @burek9657 Před 3 lety

      @@CodingTutorialsAreGo Basically i have a base class Person and two classes derived from it(Admin and User). I overrided the onModelCreating method with all 3 classes using like u did modelbuilder.entity.totable and added DbSet also, but i get that error as i mentioned.

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  Před 3 lety

      For TPT you should only need to map the two derived classes, not the base class.

  • @davidwhite2011
    @davidwhite2011 Před 3 lety

    I say a 15$ levolor microphone would make this 10 times better.

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  Před 3 lety +1

      I know. I have a very good mic, but something went wrong. I think somehow the built-in one got selected by mistake.

  • @ohaRega
    @ohaRega Před 2 lety +1

    Jasper, do you have any connection with the Author named Jasper Kent, who is also from the UK? You also look exactly the same... It's eerie...

    • @ohaRega
      @ohaRega Před 2 lety

      OK, you are him... I'm speechless! You are a genius! Thanks for existing on this planet! :D I'm totally such a fanboy now, and sorry about that.

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  Před 2 lety +2

      Yep, that's me. You can catch my other video channel relating to my fiction here: czcams.com/users/TheLastOprichnik

    • @ohaRega
      @ohaRega Před 2 lety

      @@CodingTutorialsAreGo Do you have a channel related to music as well?

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  Před 2 lety

      @@ohaRega No - haven't really been doing music seriously for years.

  • @piurek10
    @piurek10 Před 3 lety +3

    I think that you should change titles for yours clips to Entity Framework(without abbreviation). Right now it is hard to find your clips. I think this is why you have so small number of views,

  • @thuyuyenlovely8053
    @thuyuyenlovely8053 Před 2 lety +1

    Hi
    I learned through 12 tutorials video Entity Framework core and that's great , it helps me a lot at work
    I want to ask : When do we use to Inheritance and why use Inheritance in EntityFramwWork Core ?
    thanks so much .

  • @dheerajambippi2283
    @dheerajambippi2283 Před 2 lety +1

    please include RawSql, store procedure and Function in next video.

  • @alibek4398
    @alibek4398 Před rokem

    Fix your microphone! It's imposible to hear you! Very bad sound!

  • @haroldpepete
    @haroldpepete Před rokem

    tph is a bad copycat of polymorphic association in ruby on rails, awful copy