/// <summary> /// Deprecated Method for adding a new object to the SalesTerritoryHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSalesTerritoryHistories(SalesTerritoryHistory salesTerritoryHistory) { base.AddObject("SalesTerritoryHistories", salesTerritoryHistory); }
/// <summary> /// Create a new SalesTerritoryHistory object. /// </summary> /// <param name="salesPersonID">Initial value of the SalesPersonID property.</param> /// <param name="territoryID">Initial value of the TerritoryID property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static SalesTerritoryHistory CreateSalesTerritoryHistory(global::System.Int32 salesPersonID, global::System.Int32 territoryID, global::System.DateTime startDate, global::System.Guid rowguid, global::System.DateTime modifiedDate) { SalesTerritoryHistory salesTerritoryHistory = new SalesTerritoryHistory(); salesTerritoryHistory.SalesPersonID = salesPersonID; salesTerritoryHistory.TerritoryID = territoryID; salesTerritoryHistory.StartDate = startDate; salesTerritoryHistory.rowguid = rowguid; salesTerritoryHistory.ModifiedDate = modifiedDate; return salesTerritoryHistory; }