private bool FilterTerritories(Territory entity)
 {
     return (entity.RegionID == this.RegionID);
 }
 private void DetachTerritories(Territory entity)
 {
     entity.Region = null;
 }
Beispiel #3
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>
 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;
 }
 private void AttachTerritories(Territory entity)
 {
     entity.Region = this;
 }
Beispiel #5
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);
 }