实体添加映射

modelBuilder.Entity<Person>()

.Map(m => { m.Properties(p => new { p.身高, p.体重 }); m.ToTable("A"); })

.Map(m => { m.Properties(p => new { p.身份证号码 }); m.ToTable("B"); });

原文地址:https://www.cnblogs.com/lvdongjie/p/5630730.html