You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A {
public int Id {get; set }
public string Name {get; set; }
}
class B : A {
public string Location {get; set;}
}
class C : A {
public int Number {get; set;}
}
I run the command : k ef migration add initial, and entity framework generate 3 tables :
Table A with the columns Id, Name.
Table B with the columns Id, Name, Location.
Table C with the columns Id, Name, Number.
Don't create 1 table with column discriminator, what is the guideline for the inheritance code first implementation ?
The text was updated successfully, but these errors were encountered:
I create 3 entities, for example :
class A {
public int Id {get; set }
public string Name {get; set; }
}
class B : A {
public string Location {get; set;}
}
class C : A {
public int Number {get; set;}
}
I run the command : k ef migration add initial, and entity framework generate 3 tables :
Table A with the columns Id, Name.
Table B with the columns Id, Name, Location.
Table C with the columns Id, Name, Number.
Don't create 1 table with column discriminator, what is the guideline for the inheritance code first implementation ?
The text was updated successfully, but these errors were encountered: