Part 18 Table Per Hierarchy TPH inheritance in entity framework

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

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

  • @fidelisekeh2350
    @fidelisekeh2350 9 ปีที่แล้ว

    Thanks a lot kudvenkat. All your videos have been more thanhelpful to me.

  • @popaix
    @popaix 8 ปีที่แล้ว

    you're videos are always great!

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

    Can you tell me why it is better to have 1 table for the entity instead of 3? From what I see, having only one table introduces a lot of null values.

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

    Dear Venkat, we are not able to save data after creating an additional table in existing database in our entity framework environment. Please HELP!

  • @shailabhagwat9340
    @shailabhagwat9340 6 ปีที่แล้ว

    Yup Fixrd it i had kept Base Class Descriminator value for both classes as empty so> i changed to some dummy value emp a
    and derived class descriminator value as contract and permenent

  • @saagarsoni3
    @saagarsoni3 10 ปีที่แล้ว

    thnx a lot sir

  • @sonayadav3376
    @sonayadav3376 3 ปีที่แล้ว

    I have done same as your but when i click on different-2 button then same table is showing table is not updating when i choose permanent and contract. how plz help

  • @santoshpatil7818
    @santoshpatil7818 5 ปีที่แล้ว

    can you please tell me, why we have to cast the type??

  • @shailabhagwat9340
    @shailabhagwat9340 6 ปีที่แล้ว

    Followed the same steps and on the same lines i made changes using .dbml but getting a error The inheritance hierarchy rooted at 'LinQtoSqlWebApp.Employee' does not define a default.

  • @shailabhagwat9340
    @shailabhagwat9340 6 ปีที่แล้ว

    on including .edmx and .dbml in same project get a error that property(FirstName,LastName and Gender) is alredy defined

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

    Nice but not able to implement the solution this way cause I'm using vsCode. Could be cool to see the generated code for each class !
    Thanks

  • @arun9385
    @arun9385 9 ปีที่แล้ว

    i am not understanding the code in your ConvertEmployeesForDisplay function please help me !!

    • @arun9385
      @arun9385 9 ปีที่แล้ว

      Arun Nagar how your employee object contains Permanent or contract employee where it is getting value from.

    • @debarghyachakraborty
      @debarghyachakraborty 4 ปีที่แล้ว

      @@arun9385 There are two entity classes created when Permanent and Contract employee entities were created. The Employee object is being type casted to either of these derived classes.