/// <summary>
 /// Create a new Territory object.
 /// </summary>
 /// <param name="territoryId">Initial value of the TerritoryId property.</param>
 /// <param name="territoryCode">Initial value of the TerritoryCode property.</param>
 /// <param name="territoryName">Initial value of the TerritoryName property.</param>
 public static Territory CreateTerritory(global::System.Int32 territoryId, global::System.String territoryCode, global::System.String territoryName)
 {
     Territory territory = new Territory();
     territory.TerritoryId = territoryId;
     territory.TerritoryCode = territoryCode;
     territory.TerritoryName = territoryName;
     return territory;
 }
 /// <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);
 }