Exemple #1
0
        /// <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;
            }
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 internal override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 internal override IEnumerable <object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 void IDataProvider.SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)
 {
     this.SetAggregateFunctionToAggregateDescription(aggregateDescription, aggregateFunction);
 }
Exemple #6
0
 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);
Exemple #9
0
 /// <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;
 }