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