Inheritance: System.Data.Objects.DataClasses.EntityObject
Esempio n. 1
0
 /// <summary>
 /// Create a new Territories 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>
 public static Territories CreateTerritories(global::System.String territoryID, global::System.String territoryDescription, global::System.Int32 regionID)
 {
     Territories territories = new Territories();
     territories.TerritoryID = territoryID;
     territories.TerritoryDescription = territoryDescription;
     territories.RegionID = regionID;
     return territories;
 }
Esempio n. 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(Territories territories)
 {
     base.AddObject("Territories", territories);
 }