예제 #1
0
 public void AddAlternativeLocation(Location location)
 {
     this.alternativeLocations = alternativeLocations.Union(new[] {location}).ToArray();
 }
예제 #2
0
 private static void StoreADemoDataModel(IObjectContainer db)
 {
     var mainLocation = new Location("MainLocation");
     mainLocation.AddAlternativeLocation(new Location("Alternative"));
     db.Store(mainLocation);
 }