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