ICode9

精准搜索请尝试: 精确搜索
  • EF codeFirst映射多出一个Discriminator列2022-08-31 14:00:59

    我有一个EF类需要映射到数据库,然后有一个其他的类继承了这个类,使用code first便会出现该问题 解决方法:加上NotMapped public class A { [Key] public int Id { get; set; } } [NotMapped] public class B : A { public string Name { get

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有