inheritance - Eager loading of derived class in Entity Framework -
i have model this:
public abstract class point { public int id { set; get; } public string name_f { set; get; } public byte side { set; get; } } public class place : point { public bool isatm { set; get; } public bool is24h { set; get; } public string tel { set; get; } public virtual category category { set; get; } } public class street : point { public bool iswalkway { set; get; } }
i want load of point table records including records place , street derived point class.
i used didn't data:
var points = context.points .oftype<place>() .include(p => p.subcategory) .concat<points>(context.points.oftype<street>());
i places , streets in same query.
any idea?
Comments
Post a Comment