Home / General / Entity Framework - Entity Provider Level. First Experiment with Inheritance
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

Entity Framework - Entity Provider Level. First Experiment with Inheritance

In order to look at the next keywords that I wanted to look at (IS OF, OFTYPE, TREAT) I need to introduce some kind of inheritance. I modified my Shippers table in Northwind to try and model inheritance using the table-per-hierarchy model (it's not the only way that you can model inheritance in EF) where you store all the "objects" into a single table and have some discriminating column so that you can tell them apart.

I modified the Shippers table so it now has 2 extra columns on it;

alter table shippers    add ShipperType int





Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites