Entity Framework 4 TPH inheritance, how to change one type into another?

前端 未结 4 1076
执笔经年
执笔经年 2020-12-11 19:43

I have found some information regarding this but not enough for me to understand what the best practice for is for this scenario. I have your typicaly TPH setup with an abs

4条回答
  •  执笔经年
    2020-12-11 19:47

    Yes, you got it all right. EF inheritance does not support this scenario. The best way to change a Firm type for an existing Firm is to use a stored procedure.

    Please take a look at this post for more info:
    Changing Inherited Types in Entity Framework

提交回复
热议问题