/// <summary> /// finds the hierarchical relation within table only if valid for use in a NavTree /// </summary> /// <returns></returns> public List <FK> SelfRefFKs() { return(FKs.SelectMany(kv => from fk in kv.Value where fk.refTable == fk.myTable select fk).ToList <FK>()); }