DynamicQueryEngine/SpannerSpecificCreator.cs
/// <summary>
/// Constructs a call to the aggregate function specified with the field name specified as parameter.
/// </summary>
/// <param name="function">The function.</param>
/// <param name="fieldName">Name of the field.</param>
/// <returns>
/// ready to append string which represents the call to the aggregate function with the field as a parameter or the fieldname itself if
/// the aggregate function isn't known.
/// </returns>
/// <remarks>Override this method and replace function with a function which is supported if your database doesn't support the function used.</remarks>
Constructs a call to the aggregate function specified with the field name specified as parameter.
Constructs a call to the aggregate function specified with the field name specified as parameter .
protected override string ConstructCallToAggregateWithFieldAsParameter(AggregateFunction function, string fieldName)
        {
            AggregateFunction toUse = function;
            switch(toUse)
            {
                case AggregateFunction.CountBig:
                    toUse = AggregateFunction.Count;
                    break;
                case AggregateFunction.CountBigDistinct:
                    toUse = AggregateFunction.CountDistinct;
                    break;
                case AggregateFunction.CountBigRow:
                    toUse = AggregateFunction.CountRow;
                    break;
            }
            return base.ConstructCallToAggregateWithFieldAsParameter(toUse, fieldName);
        }
protected override string ConstructCallToAggregateWithFieldAsParameter ( AggregateFunction function , string fieldName ) { AggregateFunction toUse = function ; switch ( toUse ) { case AggregateFunction . CountBig : toUse = AggregateFunction . Count ; break ; case AggregateFunction . CountBigDistinct : toUse = AggregateFunction . CountDistinct ; break ; case AggregateFunction . CountBigRow : toUse = AggregateFunction . CountRow ; break ; } return base . ConstructCallToAggregateWithFieldAsParameter ( toUse , fieldName ) ; }
Constructs a call to the aggregate function specified with the field name specified as parameter.
Constructs a call to the aggregate function specified with the field name specified as parameter .
ready to append string which represents the call to the aggregate function with the field as a parameter or the fieldname itself if
the aggregate function isn't known.
ready to append string which represents the call to the aggregate function with the field as a parameter or the fieldname itself if the aggregate function isn ' t known .
function
AggregateFunction
None
fieldName
string
Name of the field.
Name of the field .
remarks
Override this method and replace function with a function which is supported if your database doesn't support the function used.
Override this method and replace function with a function which is supported if your database doesn ' t support the function used .