Entity Framework map multiple tables to one entity

前端 未结 5 746
抹茶落季
抹茶落季 2021-01-18 04:50

I have a database with a table for active orders and one for inactive orders. I would like to model this in Entity Framework as one entity called Orders. I also need a way t

5条回答
  •  耶瑟儿~
    2021-01-18 05:27

    If I am understanding you correctly both active and inactive orders would share the same properties (for example: both would have a decimal "amount" property) if this is the case then in EF 1, I am pretty certain this is not possible. I think you will have to fall back to Mapping your entities to a POCO Orders object.

提交回复
热议问题