I want to create Table-Per-Type database table inheritance.
Simply base table RowElement
will have 2 children tables. First child table Lyrics
will inherit all parents RowElement
's columns and will just add one more column. Second child table ChordUse
will only many-to-one relationship to table Chord
.
This is how my database schema looks like:
The problem is that when I let the VS create E/R diagram for me it creates this:
So it creates an 1-to-1-0 entity relationship instead of inheritance. I can't get VS to create inheritance relationship mapped correctly to database. Please help me.
After generating E/R diagram from my database I would like to have something like:
Where RowElement
is abstract class. Thank you for any help.