/// <inheritdoc /> internal override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction) { PropertyAggregateDescriptionBase padb = aggregateDescription as PropertyAggregateDescriptionBase; AggregateFunction af = aggregateFunction as AggregateFunction; if (padb != null && af != null) { padb.AggregateFunction = af; } }
private static string DefaultSelectionMethod(Type dataType, PropertyAggregateDescriptionBase aggregateDescription) { string stringFormat = aggregateDescription.StringFormat; if (aggregateDescription.AggregateFunction != null) { stringFormat = aggregateDescription.AggregateFunction.GetStringFormat(dataType, stringFormat); } IAggregateDescription aggregateDescriptionInternal = (IAggregateDescription)aggregateDescription; if (aggregateDescriptionInternal.TotalFormat != null) { stringFormat = aggregateDescriptionInternal.TotalFormat.GetStringFormat(dataType, stringFormat); } return(stringFormat); }
internal override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction) { throw new NotImplementedException(); }
internal override IEnumerable <object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription) { throw new NotImplementedException(); }
void IDataProvider.SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction) { this.SetAggregateFunctionToAggregateDescription(aggregateDescription, aggregateFunction); }
IEnumerable <object> IDataProvider.GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription) { return(this.GetAggregateFunctionsForAggregateDescription(aggregateDescription)); }
/// <inheritdoc /> internal abstract void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction);
/// <inheritdoc /> internal abstract IEnumerable <object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription);
/// <inheritdoc /> internal override IEnumerable <object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription) { yield break; }
/// <inheritdoc /> internal override IEnumerable <object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription) { ////PropertyAggregateDescriptionBase padb = aggregateDescription as PropertyAggregateDescriptionBase; ////if (padb != null) ////{ //// // Try to get the MemberAccess if it is not set yet //// IDataFieldInfo pfi = padb.MemberAccess as IDataFieldInfo; //// if (pfi != null) //// { //// if (PrecisionHelpers.GetPrecision(pfi.DataType) != Precision.Unknown) //// { //// yield return AggregateFunctions.Sum; //// yield return AggregateFunctions.Count; //// yield return AggregateFunctions.Average; //// yield return AggregateFunctions.Max; //// yield return AggregateFunctions.Min; //// yield return AggregateFunctions.Product; //// yield return AggregateFunctions.StdDev; //// yield return AggregateFunctions.StdDevP; //// yield return AggregateFunctions.Var; //// yield return AggregateFunctions.VarP; //// yield break; //// } //// } //// yield return AggregateFunctions.Count; //// yield break; ////} yield break; }