Entity Framework map multiple tables to one entity

前端 未结 5 788
抹茶落季
抹茶落季 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:16

    Take a look at the Table Per Concrete Type inheritance.
    It is described here in ADO.NET Team Blog.

提交回复
热议问题