ASP.NET CORE Inheritance

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.

猜你喜欢

转载自my.oschina.net/u/3556610/blog/1613868