コード例 #1
0
 /// <summary>
 /// Create a new Territory object.
 /// </summary>
 /// <param name="territoryID">Initial value of the TerritoryID property.</param>
 /// <param name="territoryDescription">Initial value of the TerritoryDescription property.</param>
 /// <param name="regionID">Initial value of the RegionID property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Territory CreateTerritory(global::System.Int32 territoryID, global::System.String territoryDescription, global::System.Int32 regionID, global::System.Int32 rowVersion)
 {
     Territory territory = new Territory();
     territory.TerritoryID = territoryID;
     territory.TerritoryDescription = territoryDescription;
     territory.RegionID = regionID;
     territory.RowVersion = rowVersion;
     return territory;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Territories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTerritories(Territory territory)
 {
     base.AddObject("Territories", territory);
 }