ComputeNotAggregate() public static method

public static ComputeNotAggregate ( string expr ) : Exception
expr string
return System.Exception
Ejemplo n.º 1
0
 // Helper for the DataTable.Compute method
 internal override object Eval(int[] records)
 {
     if (_childTable == null)
     {
         throw ExprException.AggregateUnbound(ToString());
     }
     if (!_local)
     {
         throw ExprException.ComputeNotAggregate(ToString());
     }
     return(_column.GetAggregateValue(records, _type));
 }
Ejemplo n.º 2
0
        // Helper for the DataTable.Compute method
        internal override object Eval(int[] records)
        {
#if DEBUG
            if (CompModSwitches.AggregateNode.TraceVerbose)
            {
                Debug.WriteLine("Eval " + this.ToString());
            }
#endif
            if (table == null)
            {
                throw ExprException.AggregateUnbound(this.ToString());
            }
            if (!local)
            {
                throw ExprException.ComputeNotAggregate(this.ToString());
            }
            return(column.GetAggregateValue(records, type));
        }
Ejemplo n.º 3
0
 internal override object Eval(int[] recordNos)
 {
     throw ExprException.ComputeNotAggregate(ToString());
 }