示例#1
0
 /// <summary>
 /// Renders only the column name and any aggregate function, but not the alias name.
 /// </summary>
 /// <param name="writer">The SQL text writer to write to.</param>
 /// <param name="args">The build arguments</param>
 protected override void RenderValueExpression(SqlTextWriter writer, SqlBuildArguments args)
 {
     if (this.Aggregate == SqlAggregate.None)
     {
         writer.WriteColumnName(this.ColumnName, args.TableName(this.Table));
     }
     else
     {
         writer.WriteAggregate(this.ColumnName, args.TableName(this.Table), this.Aggregate);
     }
 }