/// <summary> /// 用于向 ConsumptionAccounts EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToConsumptionAccounts(ConsumptionAccounts consumptionAccounts) { base.AddObject("ConsumptionAccounts", consumptionAccounts); }
/// <summary> /// 创建新的 ConsumptionAccounts 对象。 /// </summary> /// <param name="accountID">AccountID 属性的初始值。</param> /// <param name="payAmount">PayAmount 属性的初始值。</param> /// <param name="createdByID">CreatedByID 属性的初始值。</param> /// <param name="lastModifiedByID">LastModifiedByID 属性的初始值。</param> /// <param name="createdDate">CreatedDate 属性的初始值。</param> /// <param name="lastModifiedDate">LastModifiedDate 属性的初始值。</param> public static ConsumptionAccounts CreateConsumptionAccounts(global::System.Guid accountID, global::System.Decimal payAmount, global::System.Guid createdByID, global::System.Guid lastModifiedByID, global::System.DateTime createdDate, global::System.DateTime lastModifiedDate) { ConsumptionAccounts consumptionAccounts = new ConsumptionAccounts(); consumptionAccounts.AccountID = accountID; consumptionAccounts.PayAmount = payAmount; consumptionAccounts.CreatedByID = createdByID; consumptionAccounts.LastModifiedByID = lastModifiedByID; consumptionAccounts.CreatedDate = createdDate; consumptionAccounts.LastModifiedDate = lastModifiedDate; return consumptionAccounts; }