Are there any good examples of EDM models using inheritance?

  • Thread starter Thread starter Juan Dent
  • Start date Start date
J

Juan Dent

Hi,

EDM is very impressive but I have not really found an example EDM with
corresponding database script that allows me to explore in more depth the
capability for inheritance that we know is part of the Entity Framework.

Can anyone point me to the best and richest examples?
 
Hi Juan,

Thanks for using Microsoft Newsgroup Service. I am Hongye Sun [MSFT]. It's
my pleasure to work with you.

Here are some resources for inheritance samples and how to in MSDN:

General introduction to inheritance (EDM) with simple sample code:
http://msdn.microsoft.com/en-us/library/bb399159.aspx

Table-per-Type Inheritance
How to: Define a Model with Table-per-Type Inheritance (Entity Framework):
http://msdn.microsoft.com/en-us/library/bb738685.aspx
How to: Create and Execute Object Queries using Table-per-Type Inheritance
(Entity Framework): http://msdn.microsoft.com/en-us/library/bb738629.aspx
How to: Add and Modify Objects with Table-per-Type Inheritance (Entity
Framework): http://msdn.microsoft.com/en-us/library/bb738529.aspx

Table-per-Hierarchy Inheritance
How to: Define a Model with Table-per-Hierarchy Inheritance (Entity
Framework): http://msdn.microsoft.com/en-us/library/bb738443.aspx
How to: Create and Execute Object Queries using Table-per-Hierarchy
Inheritance (Entity Framework):
http://msdn.microsoft.com/en-us/library/bb738630.aspx
How to: Add and Modify Objects with Table-per-Hierarchy Inheritance (Entity
Framework): http://msdn.microsoft.com/en-us/library/bb738570.aspx
This two series of articles have a very detailed step by step instructions
and with database script in its sample code.

The following are the samples for EDM, but not specific to Inheritance:

Samples (Entity Framework):
http://msdn.microsoft.com/en-us/library/bb738547.aspx
Which has 4 EDM data model samples and 5 EDM sample applications.

Designing an Entity Data Model:
http://msdn.microsoft.com/en-us/magazine/cc163286.aspx
This article uses NorthWind sample database in SQL Server, and you can
download its sample code.

Please let me know if you have any question regarding to EDM.

Regards,
Hongye Sun ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Juan,

I am writing to check the status of the issue on your side. Would you mind
letting me know the result of the suggestions? If you need further
assistance, feel free to let me know. I will be more than happy to be of
assistance.

Have a great day!

Regards,
Hongye Sun ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top