private bool IsKey(SelectExpression source, HashSet <ColumnExpression> columns) { var keys = KeyFinder.Keys(source); return(keys.All(k => k != null && columns.Contains(k))); }