Title pretty much says it all. If I have 2 classes:
public class Account
{
public virtual Guid AccountId { get; set; }
public virtual string Name { get; set; }
}
public class VendorAccount : Account
{
public virtual string TaxId { get; set; }
}
How would I use a convention to create the VendorAccount table like so (or some approximation):
create table VendorAccount
(
AccountId uuid not null primary key references Account (AccountId),
TaxId varchar
);
I have been fussing at this for days. IJoinedSubclassConvention
and ISubclassConvention
do not allow you to specify the Id, and all other conventions can't seem to reach this situation either.
The closest I have gotten will make a column account_id
, which is not what I want.