asp.net mvc inheritance - list parent model -
i using entity frameworks , table per subclass. if have model person , children models instructor , pupil example, how can list objects person arent instructor or student?
i have tried .where(m => m.gettype() != typeof(student) ) gives me error "linq entities doesnt recognizes gettype method..."
thanks
you can utilize .oftype<student> on dbset.
asp.net-mvc inheritance parent
No comments:
Post a Comment