使用C#实体框架、Codefirst和Fluent Api进行TPC继承时,我遇到了一个奇怪的问题。我有3个类,名为Person、Invoice和PeriodicInvoice,如下所示。下面是我的代码摘要:public class Invoice : InvoiceBase public Person User { get; set; }
}InvoiceConfig :
我有两个类,一个是非实体类,假设A是在所有实体类中都有公共字段的类,另一个是实体类,它扩展了实体class.The的方式,我将这些类定义如下。//setters and getters for these fields@Table(name="some table name") private long id;
private