Esempio n. 1
0
 public static ExprIsNull IsNull(ExprValue value) => new ExprIsNull(value, not: false);
Esempio n. 2
0
 public static ExprAggregateFunction Min(ExprValue expression) => AggregateFunction("MIN", false, expression);
Esempio n. 3
0
 public static ExprAggregateFunction MaxDistinct(ExprValue expression) => AggregateFunction("MAX", true, expression);
Esempio n. 4
0
 public static ExprScalarFunction ScalarFunctionDbCustom(string databaseName, string schemaName, string name, ExprValue argument1, params ExprValue[] rest)
 => new ExprScalarFunction(new ExprDbSchema(new ExprDatabaseName(databaseName), new ExprSchemaName(schemaName)), new ExprFunctionName(false, name), Helpers.Combine(argument1, rest));
Esempio n. 5
0
 public static ExprAggregateFunction CountDistinct(ExprValue expression) => AggregateFunction("COUNT", true, expression);
Esempio n. 6
0
 public static AnalyticFunctionOverPartitionsFrameBuilder AnalyticFunctionFrame(string name, ExprValue argument, params ExprValue[] rest)
 => new AnalyticFunctionOverPartitionsFrameBuilder(name, Helpers.Combine(argument, rest));
Esempio n. 7
0
 public static FrameBorder Following(ExprValue value)
 => new FrameBorder(new ExprValueFrameBorder(value, FrameBorderDirection.Following));
 public static IQuerySpecificationBuilderInitial SelectTopDistinct(ExprValue top, IReadOnlyList <IExprSelecting> selection)
 => new QuerySpecificationBuilder(top, true, selection);
 public static IQuerySpecificationBuilderInitial SelectTopDistinct(ExprValue top, SelectingProxy selection, params SelectingProxy[] selections)
 => new QuerySpecificationBuilder(top, true, Helpers.Combine(selection, selections, SelectingProxy.MapSelectionProxy));
Esempio n. 10
0
 public static ColumnMetaBuilder DefaultValue(ExprValue defaultValue) => ColumnMetaBuilder.Default.DefaultValue(defaultValue);
 public static IQuerySpecificationBuilderInitial Select(ExprValue selection, params ExprValue[] selections)
 => new QuerySpecificationBuilder(null, false, Helpers.Combine(selection, selections));
Esempio n. 12
0
 public static ExprCast Cast(ExprValue expression, ExprType asType)
 => new ExprCast(expression, asType);
Esempio n. 13
0
 public static ExprLike Like(ExprValue test, string pattern) => new ExprLike(test, pattern);
Esempio n. 14
0
 public static ExprIsNull IsNotNull(ExprValue value) => new ExprIsNull(value, not: true);
Esempio n. 15
0
 public static ExprDateAdd DateAdd(DateAddDatePart datePart, int number, ExprValue date)
 => new ExprDateAdd(datePart, number, date);
 public static IQuerySpecificationBuilderInitial SelectTop(int top, ExprValue selection, params ExprValue[] selections)
 => new QuerySpecificationBuilder(Literal(top), false, Helpers.Combine(selection, selections));
Esempio n. 17
0
 public AnalyticFunctionOverOrderByFrameBuilder OverPartitionBy(ExprValue item, params ExprValue[] rest)
 => new AnalyticFunctionOverOrderByFrameBuilder(this._name, this._arguments, Helpers.Combine(item, rest));
 public static IQuerySpecificationBuilderInitial SelectTopDistinct(ExprValue top, ExprValue selection, params ExprValue[] selections)
 => new QuerySpecificationBuilder(top, true, Helpers.Combine(selection, selections));
Esempio n. 19
0
 public static FrameBorder Preceding(ExprValue value)
 => new FrameBorder(new ExprValueFrameBorder(value, FrameBorderDirection.Preceding));
 public static ExprOrderByItem Asc(ExprValue value) => new ExprOrderByItem(value, false);
Esempio n. 21
0
 public static ExprScalarFunction ScalarFunctionSys(string name, ExprValue argument1, params ExprValue[] rest)
 => new ExprScalarFunction(null, new ExprFunctionName(true, name), Helpers.Combine(argument1, rest));
 public static ExprOrderByItem Desc(ExprValue value) => new ExprOrderByItem(value, true);
Esempio n. 23
0
 public static ExprAggregateFunction Count(ExprValue expression) => AggregateFunction("COUNT", false, expression);
Esempio n. 24
0
        //Known scalar functions

        public static ExprFuncIsNull IsNull(ExprValue test, ExprValue alt) => new ExprFuncIsNull(test, alt);
Esempio n. 25
0
 public static ExprAnalyticFunction CountOver(ExprValue expression, params ExprValue[] partitions) => AnalyticFunction("COUNT", new [] { expression }, new ExprOver(partitions.Length == 0 ? null : partitions, null, null));
Esempio n. 26
0
 public static ExprAggregateFunction AggregateFunction(string name, bool distinct, ExprValue expression)
 => new ExprAggregateFunction(distinct, new ExprFunctionName(true, name), expression);
Esempio n. 27
0
 public static ExprAggregateFunction Max(ExprValue expression) => AggregateFunction("MAX", false, expression);
Esempio n. 28
0
 public static ExprFuncCoalesce Coalesce(ExprValue test, ExprValue alt, params ExprValue[] rest)
 => new ExprFuncCoalesce(test, Helpers.Combine(alt, rest));
Esempio n. 29
0
 public static ExprAggregateFunction Sum(ExprValue expression) => AggregateFunction("SUM", false, expression);
Esempio n. 30
0
 public ExprBooleanGtEq(ExprValue left, ExprValue right)
 {
     this.Left  = left;
     this.Right = right;
 }