I have a table "Project" in SQL database with field 'Discriminator'. The C# class 'Project' has two child classes, 'PropertyA' and 'PropertyB'. 'PropertyA' further has 2 child classes 'SaleA' and 'SaleB'.
The records for all the classes are being stored in one SQL table 'Project' with Discriminator values 'PropertyB', 'SaleA' and 'SaleB'.
'SaleA' has a field 'CNumber' and now I want to create a field 'CNumber' in 'PropertyB' class. And the values for 'CNumber' for both the above classes should be stored in the 'CNumber' column. I am using code first approach and I when I add a migration for the adding the new field, it adds a new column named 'PropertyB_CNumber' in DbContext.
How can I map the values from two different classes to one column?