/// <summary> /// 用于向 OrganizationCustomTypes EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToOrganizationCustomTypes(OrganizationCustomType organizationCustomType) { base.AddObject("OrganizationCustomTypes", organizationCustomType); }
/// <summary> /// 创建新的 OrganizationCustomType 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="organizationID">OrganizationID 属性的初始值。</param> /// <param name="customCategoryID">CustomCategoryID 属性的初始值。</param> /// <param name="note">note 属性的初始值。</param> public static OrganizationCustomType CreateOrganizationCustomType(global::System.Int32 id, global::System.Int32 organizationID, global::System.Int32 customCategoryID, global::System.String note) { OrganizationCustomType organizationCustomType = new OrganizationCustomType(); organizationCustomType.ID = id; organizationCustomType.OrganizationID = organizationID; organizationCustomType.CustomCategoryID = customCategoryID; organizationCustomType.note = note; return organizationCustomType; }