This commit is contained in:
2021-07-20 19:52:18 +00:00
parent 89e3e96320
commit 87b7eee335
6 changed files with 50 additions and 18 deletions

View File

@@ -58,7 +58,11 @@ namespace AyaNova.DataList
{
if (firstColumnAdded)
sb.Append(", ");
sb.Append(valueColumnName);
if (o.SqlColumnExpression != null)//if there is an expression defined then add it into the select statement, the valuecolumnname will be the AS alias of it
sb.Append(o.SqlColumnExpression);
else
sb.Append(valueColumnName);
firstColumnAdded = true;
map.Add(valueColumnName, nOrdinal++);
}