更新时间:2023-02-25 21:24:46
@Dragonheart:我试过这个 repro,如果你删除上下文类中的 DBSet 声明它会正常工作.IdentityDbContext 将处理您的 TPH 模式并在表中添加一个鉴别器列以区分子类.
@Dragonheart: I tried this repro and it would work fine if you remove the DBSet declarations in you context class. The IdentityDbContext would handle you TPH pattern and add a Discriminator column in the table to differentiate the child classes.