/// <summary> /// 用于向 CustomerGoups EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToCustomerGoups(CustomerGoup customerGoup) { base.AddObject("CustomerGoups", customerGoup); }
/// <summary> /// 创建新的 CustomerGoup 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="groupName">GroupName 属性的初始值。</param> /// <param name="creatID">CreatID 属性的初始值。</param> public static CustomerGoup CreateCustomerGoup(global::System.Int32 id, global::System.String groupName, global::System.Int32 creatID) { CustomerGoup customerGoup = new CustomerGoup(); customerGoup.ID = id; customerGoup.GroupName = groupName; customerGoup.CreatID = creatID; return customerGoup; }