/// <summary> /// 创建新的 ViewUsageHistory 对象。 /// </summary> /// <param name="acctNum">AcctNum 属性的初始值。</param> /// <param name="customerID">CustomerID 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="address">Address 属性的初始值。</param> /// <param name="location">Location 属性的初始值。</param> /// <param name="isEst">IsEst 属性的初始值。</param> public static ViewUsageHistory CreateViewUsageHistory(global::System.String acctNum, global::System.String customerID, global::System.String name, global::System.String address, global::System.String location, global::System.String isEst) { ViewUsageHistory viewUsageHistory = new ViewUsageHistory(); viewUsageHistory.AcctNum = acctNum; viewUsageHistory.CustomerID = customerID; viewUsageHistory.Name = name; viewUsageHistory.Address = address; viewUsageHistory.Location = location; viewUsageHistory.IsEst = isEst; return(viewUsageHistory); }
/// <summary> /// 用于向 ViewUsageHistory EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToViewUsageHistory(ViewUsageHistory viewUsageHistory) { base.AddObject("ViewUsageHistory", viewUsageHistory); }
/// <summary> /// 创建新的 ViewUsageHistory 对象。 /// </summary> /// <param name="acctNum">AcctNum 属性的初始值。</param> /// <param name="customerID">CustomerID 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="address">Address 属性的初始值。</param> /// <param name="location">Location 属性的初始值。</param> /// <param name="isEst">IsEst 属性的初始值。</param> public static ViewUsageHistory CreateViewUsageHistory(global::System.String acctNum, global::System.String customerID, global::System.String name, global::System.String address, global::System.String location, global::System.String isEst) { ViewUsageHistory viewUsageHistory = new ViewUsageHistory(); viewUsageHistory.AcctNum = acctNum; viewUsageHistory.CustomerID = customerID; viewUsageHistory.Name = name; viewUsageHistory.Address = address; viewUsageHistory.Location = location; viewUsageHistory.IsEst = isEst; return viewUsageHistory; }