partial void DeleteTerritory(Territory instance);
 partial void InsertTerritory(Territory instance);
 partial void UpdateTerritory(Territory instance);
 /// <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>
 public static Territory CreateTerritory(global::System.String territoryID, global::System.String territoryDescription, global::System.Int32 regionID)
 {
     Territory territory = new Territory();
     territory.TerritoryID = territoryID;
     territory.TerritoryDescription = territoryDescription;
     territory.RegionID = regionID;
     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);
 }
        public void Insert(string TerritoryID,string TerritoryDescription,int RegionID)
        {
            Territory item = new Territory();

            item.TerritoryID = TerritoryID;

            item.TerritoryDescription = TerritoryDescription;

            item.RegionID = RegionID;

            item.Save(UserName);
        }
        public void Update(string TerritoryID,string TerritoryDescription,int RegionID)
        {
            Territory item = new Territory();
            item.MarkOld();
            item.IsLoaded = true;

            item.TerritoryID = TerritoryID;

            item.TerritoryDescription = TerritoryDescription;

            item.RegionID = RegionID;

            item.Save(UserName);
        }
 public bool Destroy(object TerritoryID)
 {
     return(Territory.Destroy(TerritoryID) == 1);
 }
 public bool Delete(object TerritoryID)
 {
     return(Territory.Delete(TerritoryID) == 1);
 }
Esempio n. 10
0
 public void AddTerritory(Territory t)
 {
     territories.Add(t);
 }