Video Tutorial Library:

LINQ to SQL 101 :

LINQtoSQL101_04_04 - Enabling Inheritance in the Object Relational Designer

Tags:

In this video, I'll demonstrate how to enable inheritance in LINQ to SQL.  Specifically, the type of inheritance LINQ to SQL allows us to implement is Table per Class Hierarchy, which means that you have a single table in the database with columns that apply to all derived classes, as well as columns that are specific to each distinct type of derived class.  The LINQ to SQL designer allows us to define a discrimantor column so that it knows whether to create one derived type or a different derived type for a given row of data. 

Later in 2009 Linq to Entities will be available that will allow you to access data from other database vendors, and more germane to this topic, it provides you with additional type of object relational inheritance.  We'll talk more about that in an upcoming video series, Linq to Entities 101.

Downloads:

Sign up today to access downloads.
LINQtoSQL101_04_04 - Enabling Inheritance in the Object Relational Designer
Duration: 26 Minutes, 12 Seconds
Size: 32.60M
Recorded Using: Visual Studio 2008 (all versions)

Get Free Videos via Email

Sign up for our newsletter and receive links to free videos and more.

Subscribe

We don't rent/sell/or commit other evil deeds with your email address. See our Privacy Policy.