Deepanjan Nag
Deepanjan Nag

Reputation: 931

Question about feasibility of LINQ using inheritance

If I have a base class B and inheriting child class C1 and C2, can I use LINQ to map C1 and C2 to corresponding tables T1 and T2 if B contains some common fields?

Upvotes: 1

Views: 77

Answers (1)

roufamatic
roufamatic

Reputation: 18495

LINQ to SQL only supports table-per-hierarchy inheritance out of the box. Entity Framework allows different storage schemes including table-per-subclass as you describe. This may help.

Upvotes: 3

Related Questions