本文主要介绍分享EF Core2.0和EF6中,分别通过IEntityTypeConfiguration和EntityTypeConfiguration配置实体映射关系的代码。
原文地址:EF Core 2.0和EF6(Entity Framework 6)中配置实体映射关系