1.检查模型是否存在重复的字段,eg:

public class AggregateRoot

{

    public System.Guid Guid { get; set; }

}

public partial class User : AggregateRoot
{
public int ID { get; set; }

//在父类已经定义了Guid,子类又重新定义,故报此错误,元素重复
public System.Guid Guid { get; set; }
public int DepId { get; set; }
public string Name { get; set; }
public string Pwd { get; set; }
public bool Gender { get; set; }
public string Post { get; set; }
public string Address { get; set; }
public bool IsDel { get; set; }
public System.DateTime AddTime { get; set; }
public System.DateTime UpdateTime { get; set; }
}

相关文章:

  • 2021-05-20
  • 2021-04-23
  • 2021-11-24
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案