/// <summary> /// Parameterized Class Constructor /// </summary> public MetaLocationViewModel( BusinessLib.Models.MetaLocationModel locationModel , MetaLocationViewModel parent ) : this() { Parent = parent; _LocalName = locationModel.LocalName; ID = locationModel.ID; Latitude = locationModel.Geo_lat; Longitude = locationModel.Geo_lng; TypeOfLocation = locationModel.Type; ChildrenClear(false); // Lazy Load Children !!! }
/// <summary> /// Parameterized Class Constructor /// </summary> public MetaLocationModel( MetaLocationModel parent , int id , string iso , string localName , LocationType type , long in_Location , double geo_lat , double geo_lng , string db_id ) : this() { Parent = parent; ID = id; ISO = iso; LocalName = localName; Type = type; In_Location = in_Location; Geo_lat = geo_lat; Geo_lng = geo_lng; DB_id = db_id; }
public void ChildrenAdd(MetaLocationModel child) { _Children.Add(child); }
public void SetParent(MetaLocationModel parent) { Parent = parent; }
public void ChildrenRemove(MetaLocationModel child) { _Children.Remove(child); }