/// <summary> /// 用于向 tblCustomerHistory EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddTotblCustomerHistory(tblCustomerHistory tblCustomerHistory) { base.AddObject("tblCustomerHistory", tblCustomerHistory); }
/// <summary> /// 创建新的 tblCustomerHistory 对象。 /// </summary> /// <param name="customerAccount">CustomerAccount 属性的初始值。</param> /// <param name="customerHisotryID">CustomerHisotryID 属性的初始值。</param> /// <param name="customerID">CustomerID 属性的初始值。</param> /// <param name="premiseID">PremiseID 属性的初始值。</param> public static tblCustomerHistory CreatetblCustomerHistory(global::System.String customerAccount, global::System.String customerHisotryID, global::System.String customerID, global::System.String premiseID) { tblCustomerHistory tblCustomerHistory = new tblCustomerHistory(); tblCustomerHistory.CustomerAccount = customerAccount; tblCustomerHistory.CustomerHisotryID = customerHisotryID; tblCustomerHistory.CustomerID = customerID; tblCustomerHistory.PremiseID = premiseID; return tblCustomerHistory; }