【问题标题】:Code First - Mapping when the Discriminator IS NULL or NOT NULL代码优先 - 鉴别器为 NULL 或 NOT NULL 时的映射
【发布时间】: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


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2023-03-25
    • 2011-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多