71 references to FunctionId
System.Data.Common (71)
System\Data\Filter\AggregateNode.cs (17)
12
None =
FunctionId
.none,
13
Sum =
FunctionId
.Sum,
14
Avg =
FunctionId
.Avg,
15
Min =
FunctionId
.Min,
16
Max =
FunctionId
.Max,
17
Count =
FunctionId
.Count,
18
StDev =
FunctionId
.StDev, // Statistical standard deviation
19
Var =
FunctionId
.Var, // Statistical variance
37
internal AggregateNode(DataTable? table,
FunctionId
aggregateType, string columnName) :
42
internal AggregateNode(DataTable? table,
FunctionId
aggregateType, string columnName, bool local, string? relationName) : base(table)
47
if (aggregateType ==
FunctionId
.Sum)
49
else if (aggregateType ==
FunctionId
.Avg)
51
else if (aggregateType ==
FunctionId
.Min)
53
else if (aggregateType ==
FunctionId
.Max)
55
else if (aggregateType ==
FunctionId
.Count)
57
else if (aggregateType ==
FunctionId
.Var)
59
else if (aggregateType ==
FunctionId
.StDev)
System\Data\Filter\ExpressionParser.cs (2)
367
node = ParseAggregateArgument((
FunctionId
)(int)agg);
560
private AggregateNode ParseAggregateArgument(
FunctionId
aggregate)
System\Data\Filter\FunctionNode.cs (52)
23
new Function("Abs",
FunctionId
.Abs, typeof(object), true, false, 1, typeof(object), null, null),
24
new Function("IIf",
FunctionId
.Iif, typeof(object), false, false, 3, typeof(object), typeof(object), typeof(object)),
25
new Function("In",
FunctionId
.In, typeof(bool), false, true, 1, null, null, null),
26
new Function("IsNull",
FunctionId
.IsNull, typeof(object), false, false, 2, typeof(object), typeof(object), null),
27
new Function("Len",
FunctionId
.Len, typeof(int), true, false, 1, typeof(string), null, null),
28
new Function("Substring",
FunctionId
.Substring, typeof(string), true, false, 3, typeof(string), typeof(int), typeof(int)),
29
new Function("Trim",
FunctionId
.Trim, typeof(string), true, false, 1, typeof(string), null, null),
31
new Function("Convert",
FunctionId
.Convert, typeof(object), false, true, 1, typeof(object), null, null),
32
new Function("DateTimeOffset",
FunctionId
.DateTimeOffset, typeof(DateTimeOffset), false, true, 3, typeof(DateTime), typeof(int), typeof(int)),
34
new Function("Max",
FunctionId
.Max, typeof(object), false, false, 1, null, null, null),
35
new Function("Min",
FunctionId
.Min, typeof(object), false, false, 1, null, null, null),
36
new Function("Sum",
FunctionId
.Sum, typeof(object), false, false, 1, null, null, null),
37
new Function("Count",
FunctionId
.Count, typeof(object), false, false, 1, null, null, null),
38
new Function("Var",
FunctionId
.Var, typeof(object), false, false, 1, null, null, null),
39
new Function("StDev",
FunctionId
.StDev, typeof(object), false, false, 1, null, null, null),
40
new Function("Avg",
FunctionId
.Avg, typeof(object), false, false, 1, null, null, null),
92
if (s_funcs[_info]._id ==
FunctionId
.Convert)
130
if (s_funcs[_info]._id ==
FunctionId
.Convert)
138
else if (s_funcs[_info]._id !=
FunctionId
.Iif)
161
else if ((s_funcs[_info]._id ==
FunctionId
.Trim) || (s_funcs[_info]._id ==
FunctionId
.Substring) || (s_funcs[_info]._id ==
FunctionId
.Len))
260
if (s_funcs[_info]._id ==
FunctionId
.In)
315
private object EvalFunction(
FunctionId
id, object[] argumentValues, DataRow? row, DataRowVersion version)
320
case
FunctionId
.Abs:
331
case
FunctionId
.cBool:
343
case
FunctionId
.cInt:
347
case
FunctionId
.cDate:
351
case
FunctionId
.cDbl:
355
case
FunctionId
.cStr:
359
case
FunctionId
.Charindex:
376
case
FunctionId
.Iif:
390
case
FunctionId
.In:
395
case
FunctionId
.IsNull:
403
case
FunctionId
.Len:
422
case
FunctionId
.Substring:
463
case
FunctionId
.Trim:
477
case
FunctionId
.Convert:
532
case
FunctionId
.DateTimeOffset:
568
internal
FunctionId
Aggregate
576
return
FunctionId
.none;
584
bool aggregate = (s_funcs[_info]._id ==
FunctionId
.Sum) ||
585
(s_funcs[_info]._id ==
FunctionId
.Avg) ||
586
(s_funcs[_info]._id ==
FunctionId
.Min) ||
587
(s_funcs[_info]._id ==
FunctionId
.Max) ||
588
(s_funcs[_info]._id ==
FunctionId
.Count) ||
589
(s_funcs[_info]._id ==
FunctionId
.StDev) ||
590
(s_funcs[_info]._id ==
FunctionId
.Var);
606
if (s_funcs[_info]._id ==
FunctionId
.In)
665
internal readonly
FunctionId
_id;
676
_id =
FunctionId
.none;
682
internal Function(string name,
FunctionId
id, Type result, bool IsValidateArguments,