[Table("Rectangle")]
public partial class Rectangle
{
int length;
int breath;
}
[Table("Rhombus")]
public partial class Rhombus
{
int length;
int breath;
int angle;
}
just for sake of code reusability i need like this
[Table("Rhombus")]
public partial class Rhombus:Rectangle
{
int angle;
}
but it creates discriminator field because of TPH
so how to disable inheritance relationship so that i can extent a entity just for code reusability or any other workaround to achieve this.
public class Shape
{
int length;
int breath;
}
[Table("Rectangle")]
public partial class Rectangle : Shape
{
}
[Table("Rhombus")]
public partial class Rhombus : Shape
{
int angle;
}