/// <summary> /// Add one record to the table /// </summary> /// <param name="rec">The awyRec to add</param> public string Add(aptRec rec) { if (rec != null) { return(m_db.Add(rec)); } return(""); }
/// <summary> /// Return an Airport subtable where airport_runwy key matches /// /// </summary> /// <param name="icao_key">The ICAO name of runways to select</param> /// <returns>A table with selected records</returns> public aptTable GetSubtable(string icao_key) { var l = this.Where(x => x.Key == icao_key); var t = new aptTable( ); foreach (var kv in l) { t.Add(kv.Key, kv.Value); } return(t); }