Mapping to a nested class
问题 I am getting the following error when my application runs: System.InvalidOperationException: The type 'ContactModels+Contact' was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive, nested or generic, and does not inherit from EntityObject. It is failing when my DBContext class tries to initialize the entities: public class DB : DbContext { public DbSet