zoukankan      html  css  js  c++  java
  • EF 报【序列包含一个以上的元素】解决办法

    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; }
    }

  • 相关阅读:
    Domain Space
    Class WriteGroupAttribute
    HelloCube:IJobForEach
    HelloCube:ForEach
    组件
    世界
    DOTS默认情况下的性能
    ECS适合你吗?
    DOTS原则和愿景
    Packages window(包窗口)
  • 原文地址:https://www.cnblogs.com/pari-Zhong/p/4420783.html
Copyright © 2011-2022 走看看