private static tgQueryItem ModuloOperator(tgQueryItem queryItem, object literal, tgSystemType literalType, bool itemFirst) { tgQueryItem qi = new tgQueryItem(); qi.Expression.SelectItem1 = queryItem; qi.Expression.Operator = tgArithmeticOperator.Modulo; qi.Expression.Literal = literal; qi.Expression.LiteralType = literalType; qi.Expression.ItemFirst = itemFirst; return qi; }
private static tgComparison GreaterThanOrEqual(tgQueryItem queryItem, object literal, tgSystemType literalType, bool itemFirst) { tgComparison wi = new tgComparison(queryItem.query); wi.Operand = tgComparisonOperand.GreaterThanOrEqual; wi.data.Column = queryItem.Column; wi.data.Value = literal; wi.data.Expression = queryItem.Expression; wi.data.ItemFirst = itemFirst; wi.SubOperators = queryItem.SubOperators; return wi; }
public static tgQueryItem operator %(tgQueryItem item1, tgQueryItem item2) { tgQueryItem qi = new tgQueryItem(); qi.Expression.SelectItem1 = item1; qi.Expression.Operator = tgArithmeticOperator.Modulo; qi.Expression.SelectItem2 = item2; return qi; }
public tgCase Else(tgQueryItem queryItem) { tgExpression expression = queryItem; this.data.Else = expression; return this; }
/// <summary> /// The Constructor /// </summary> public tgCase(tgDynamicQuerySerializable query, tgQueryItem queryItem) { this.data.Query = query; this.data.QueryItem = queryItem; }
public tgCase When(tgQueryItem ex) { return this; }
public tgCase Then(tgQueryItem queryItem) { tgExpression expression = queryItem; tgSimpleCaseData.tgCaseClause clause = new tgSimpleCaseData.tgCaseClause(); clause.When = this.WhenItem; clause.Then = expression; if (data.Cases == null) { data.Cases = new List<tgSimpleCaseData.tgCaseClause>(); } this.data.Cases.Add(clause); return this; }