EF will only setup inheritance if two or more inherited types are explicitly included in the model. EF will not scan for base or derived types that were not otherwise included in the model. You can include types in the model by exposing a DbSet for each type in the inheritance hierarchy.
ASP.NET CORE Inheritance
猜你喜欢
转载自my.oschina.net/u/3556610/blog/1613868
今日推荐
周排行