A Beginner's Tutorial on Understanding Table Per Type(TPT) Inheritance in Entity Framework - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Monday, March 4, 2013

A Beginner's Tutorial on Understanding Table Per Type(TPT) Inheritance in Entity Framework

In this article we will discuss about implementing Table per Type inheritance hierarchy using Entity Framework. We will see a small sample to see how this can be implemented in a step by step manner.

There are times when our database design has tables that do not logically match with the entities that we need in our application. There could be chances that the database has too many or too few tables than the entities required logically by the application. Some other times when the tables are created one per logical entity but the relationship between them is not logical from the application and entity perspective.

Inheritance in entity framework provides a way to create the required logical entities to act on a set of database tables and also to create a more meaningful relationship between entities using inheritance.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too. 

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials, Entity Framework, Table Per Type(TPT) Inheritance

3 comments:

  1. You made some good points there. I checked on
    the web for more information about the issue and found most
    people will go along with your views on this web site.


    Stop by my blog :: visit website

    ReplyDelete
  2. I love your blog.. very nice colors & theme. Did you create this website yourself or
    did you hire someone to do it for you? Plz reply as I'm looking to create my own blog and would like to know where u got this from. thanks

    My site :: search clickbank

    ReplyDelete
  3. Why viewers still use to read news papers when in this technological world everything is available on net?



    my blog post; lowest home equity loan rates

    ReplyDelete