コード例 #1
0
 /// <summary>
 /// Create a new DimSalesTerritory object.
 /// </summary>
 /// <param name="salesTerritoryKey">Initial value of the SalesTerritoryKey property.</param>
 /// <param name="salesTerritoryRegion">Initial value of the SalesTerritoryRegion property.</param>
 /// <param name="salesTerritoryCountry">Initial value of the SalesTerritoryCountry property.</param>
 public static DimSalesTerritory CreateDimSalesTerritory(global::System.Int32 salesTerritoryKey, global::System.String salesTerritoryRegion, global::System.String salesTerritoryCountry)
 {
     DimSalesTerritory dimSalesTerritory = new DimSalesTerritory();
     dimSalesTerritory.SalesTerritoryKey = salesTerritoryKey;
     dimSalesTerritory.SalesTerritoryRegion = salesTerritoryRegion;
     dimSalesTerritory.SalesTerritoryCountry = salesTerritoryCountry;
     return dimSalesTerritory;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the DimSalesTerritories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDimSalesTerritories(DimSalesTerritory dimSalesTerritory)
 {
     base.AddObject("DimSalesTerritories", dimSalesTerritory);
 }