72 references to FunctionId
System.Data (72)
fx\src\data\System\Data\Filter\AggregateNode.cs (18)
16
None =
FunctionId
.none,
17
Sum =
FunctionId
.Sum,
18
Avg =
FunctionId
.Avg,
19
Min =
FunctionId
.Min,
20
Max =
FunctionId
.Max,
21
Count =
FunctionId
.Count,
22
StDev =
FunctionId
.StDev, // Statistical standard deviation
23
Var =
FunctionId
.Var, // Statistical variance
40
internal AggregateNode(DataTable table,
FunctionId
aggregateType, string columnName) :
44
internal AggregateNode(DataTable table,
FunctionId
aggregateType, string columnName, string relationName) :
48
internal AggregateNode(DataTable table,
FunctionId
aggregateType, string columnName, bool local, string relationName) : base(table) {
52
if (aggregateType ==
FunctionId
.Sum)
54
else if (aggregateType ==
FunctionId
.Avg)
56
else if (aggregateType ==
FunctionId
.Min)
58
else if (aggregateType ==
FunctionId
.Max)
60
else if (aggregateType ==
FunctionId
.Count)
62
else if (aggregateType ==
FunctionId
.Var)
64
else if (aggregateType ==
FunctionId
.StDev)
fx\src\data\System\Data\Filter\ExpressionParser.cs (2)
352
node = ParseAggregateArgument((
FunctionId
)(int)agg);
534
private ExpressionNode ParseAggregateArgument(
FunctionId
aggregate) {
fx\src\data\System\Data\Filter\FunctionNode.cs (52)
28
new Function("Abs",
FunctionId
.Abs, typeof(object), true, false, 1, typeof(object), null, null),
29
new Function("IIf",
FunctionId
.Iif, typeof(object), false, false, 3, typeof(object), typeof(object), typeof(object)),
30
new Function("In",
FunctionId
.In, typeof(bool), false, true, 1, null, null, null),
31
new Function("IsNull",
FunctionId
.IsNull, typeof(object), false, false, 2, typeof(object), typeof(object), null),
32
new Function("Len",
FunctionId
.Len, typeof(int), true, false, 1, typeof(string), null, null),
33
new Function("Substring",
FunctionId
.Substring, typeof(string), true, false, 3, typeof(string), typeof(int), typeof(int)),
34
new Function("Trim",
FunctionId
.Trim, typeof(string), true, false, 1, typeof(string), null, null),
36
new Function("Convert",
FunctionId
.Convert, typeof(object), false, true, 1, typeof(object), null, null),
37
new Function("DateTimeOffset",
FunctionId
.DateTimeOffset, typeof(DateTimeOffset), false, true, 3, typeof(DateTime), typeof(int), typeof(int)),
39
new Function("Max",
FunctionId
.Max, typeof(object), false, false, 1, null, null, null),
40
new Function("Min",
FunctionId
.Min, typeof(object), false, false, 1, null, null, null),
41
new Function("Sum",
FunctionId
.Sum, typeof(object), false, false, 1, null, null, null),
42
new Function("Count",
FunctionId
.Count, typeof(object), false, false, 1, null, null, null),
43
new Function("Var",
FunctionId
.Var, typeof(object), false, false, 1, null, null, null),
44
new Function("StDev",
FunctionId
.StDev, typeof(object), false, false, 1, null, null, null),
45
new Function("Avg",
FunctionId
.Avg, typeof(object), false, false, 1, null, null, null),
83
if (funcs[info].id ==
FunctionId
.Convert) {
113
if (funcs[info].id ==
FunctionId
.Convert) {
120
else if (funcs[info].id !=
FunctionId
.Iif) { // We do not want to evaluate arguments of IIF, we =will alread do it in EvalFunction/ second point: we may go to div by 0
137
else if ((funcs[info].id ==
FunctionId
.Trim) || (funcs[info].id ==
FunctionId
.Substring)|| (funcs[info].id ==
FunctionId
.Len)) {
214
if (funcs[this.info].id ==
FunctionId
.In) {
254
private object EvalFunction(
FunctionId
id, object[] argumentValues, DataRow row, DataRowVersion version) {
257
case
FunctionId
.Abs:
268
case
FunctionId
.cBool:
285
case
FunctionId
.cInt:
289
case
FunctionId
.cDate:
293
case
FunctionId
.cDbl:
297
case
FunctionId
.cStr:
301
case
FunctionId
.Charindex:
318
case
FunctionId
.Iif:
330
case
FunctionId
.In:
335
case
FunctionId
.IsNull:
343
case
FunctionId
.Len:
359
case
FunctionId
.Substring:
398
case
FunctionId
.Trim:
413
case
FunctionId
.Convert:
454
case
FunctionId
.DateTimeOffset:
487
internal
FunctionId
Aggregate {
492
return
FunctionId
.none;
498
bool aggregate = (funcs[this.info].id ==
FunctionId
.Sum) ||
499
(funcs[this.info].id ==
FunctionId
.Avg) ||
500
(funcs[this.info].id ==
FunctionId
.Min) ||
501
(funcs[this.info].id ==
FunctionId
.Max) ||
502
(funcs[this.info].id ==
FunctionId
.Count) ||
503
(funcs[this.info].id ==
FunctionId
.StDev) ||
504
(funcs[this.info].id ==
FunctionId
.Var);
518
if (funcs[this.info].id ==
FunctionId
.In)
575
internal readonly
FunctionId
id;
584
this.id =
FunctionId
.none;
590
internal Function(string name,
FunctionId
id, Type result, bool IsValidateArguments,