예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SalesTerritories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSalesTerritories(SalesTerritory salesTerritory)
 {
     base.AddObject("SalesTerritories", salesTerritory);
 }
예제 #2
0
 /// <summary>
 /// Create a new SalesTerritory object.
 /// </summary>
 /// <param name="territoryID">Initial value of the TerritoryID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="countryRegionCode">Initial value of the CountryRegionCode property.</param>
 /// <param name="group">Initial value of the Group property.</param>
 /// <param name="salesYTD">Initial value of the SalesYTD property.</param>
 /// <param name="salesLastYear">Initial value of the SalesLastYear property.</param>
 /// <param name="costYTD">Initial value of the CostYTD property.</param>
 /// <param name="costLastYear">Initial value of the CostLastYear property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static SalesTerritory CreateSalesTerritory(global::System.Int32 territoryID, global::System.String name, global::System.String countryRegionCode, global::System.String group, global::System.Decimal salesYTD, global::System.Decimal salesLastYear, global::System.Decimal costYTD, global::System.Decimal costLastYear, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     SalesTerritory salesTerritory = new SalesTerritory();
     salesTerritory.TerritoryID = territoryID;
     salesTerritory.Name = name;
     salesTerritory.CountryRegionCode = countryRegionCode;
     salesTerritory.Group = group;
     salesTerritory.SalesYTD = salesYTD;
     salesTerritory.SalesLastYear = salesLastYear;
     salesTerritory.CostYTD = costYTD;
     salesTerritory.CostLastYear = costLastYear;
     salesTerritory.rowguid = rowguid;
     salesTerritory.ModifiedDate = modifiedDate;
     return salesTerritory;
 }