【发布时间】:2012-10-12 19:59:22
【问题描述】:
我想在 EF5 Code First 中使用 TPH 继承。我想根据数据库中的列是否为空来判断。
我发现此链接表明它在 EF4 中是不可能的。 Entity Framework 4 - TPH Inheritance in Features CTP5 (code first) with "IS NULL" discriminator
这在 EF5 中是否已修复?如果有,语法是什么?
【问题讨论】:
标签: entity-framework ef-code-first code-first table-per-hierarchy table-per-subclass