Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private static string PrintFrom(ISubSelect subSelect)
 {
     return($"({Print(subSelect.SelectBody)}) AS {subSelect.Alias.Name}");
 }