private static IList <CloneRelationDefInfo> ForeignRelations(CloneTableDefInfo tableInfo, IList <CloneTableDefInfo> tableList) { return(tableList.SelectMany((m) => (m.Relations().Where((r) => (r.m_strTable.CompareTo(tableInfo.TableName()) == 0)))).ToList()); }