I don’t think so because:
- Inheritance inheritance requires the base class to be an entity in EDMX.
- When inheriting, it is used
ObjectSetfor the base type. What common argument would you use to instantiate ObjectSetwhen it should be used to extract any subtype?
( POCOs). EDMX . POCO . , , , POCO , EDMX, , EDMX. , . , .
:
, EDMX: IntegerValue DoubleValue. POCO :
public abstract class BaseType<T>
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual T Value { get; set; }
}
public class IntegerValue : BaseType<int>
{ }
public class DoubleValue : BaseType<double>
{ }
.