protected virtual string GenerateSubSelectSourceString(ISubSelect subSelect, IAlias alias = null) { return(string.Concat("(", GenerateSqlString(subSelect.SqlStatement), ")", (alias != null) ? " As " + NameConverter.GenerateAliasNameString(alias) : string.Empty)); //return string.Concat("(", GenerateSqlString(subSelect.SqlStatement), ")", // subSelect is IAlias ? " As " + NameConvertor.CheckedItemNameString(((IAlias)subSelect).Alias) : string.Empty); }