本文整理匯總了C#中Npgsql.SqlGenerators.VisitedExpression類的典型用法代碼示例。如果您正苦於以下問題:C# VisitedExpression類的具體用法?C# VisitedExpression怎麽用?C# VisitedExpression使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
VisitedExpression類屬於Npgsql.SqlGenerators命名空間,在下文中一共展示了VisitedExpression類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: And
internal void And(VisitedExpression andAlso)
{
_where = OperatorExpression.Build(Operator.And, _where, andAlso);
}
示例2: IsNullExpression
public IsNullExpression(VisitedExpression argument)
{
_argument = argument;
}
示例3: LimitExpression
public LimitExpression(VisitedExpression arg)
{
_arg = arg;
}
示例4: AddArgument
internal void AddArgument(VisitedExpression visitedExpression)
{
_args.Add(visitedExpression);
}
示例5: AppendTarget
public void AppendTarget(VisitedExpression target)
{
Append(target);
}
示例6: AppendFrom
public void AppendFrom(VisitedExpression from)
{
Append(from);
}
示例7: ExistsExpression
public ExistsExpression(VisitedExpression argument)
{
_argument = argument;
}
示例8: NegatableBooleanExpression
public NegatableBooleanExpression(DbExpressionKind booleanOperator, VisitedExpression left, VisitedExpression right)
{
_booleanOperator = booleanOperator;
_left = left;
_right = right;
}
示例9: NegateExpression
public NegateExpression(VisitedExpression argument)
{
_argument = argument;
Negated = true;
}
示例10: Build
public static OperatorExpression Build(Operator op, VisitedExpression exp)
{
if (op.UnaryType == Operator.UnaryTypes.Prefix)
{
return new OperatorExpression(op, null, exp);
}
else if (op.UnaryType == Operator.UnaryTypes.Postfix)
{
return new OperatorExpression(op, exp, null);
}
else
{
throw new InvalidOperationException("Binary operator with one operand");
}
}
示例11: Negate
/// <summary>
/// Negates an expression.
/// If possible, replaces the operator of exp if exp is a negatable OperatorExpression,
/// else return a new OperatorExpression of type Not that wraps exp.
/// </summary>
public static VisitedExpression Negate(VisitedExpression exp)
{
OperatorExpression expOp = exp as OperatorExpression;
if (expOp != null)
{
Operator op = expOp.op;
Operator newOp = null;
if (Operator.NegateDict.TryGetValue(op, out newOp))
{
expOp.op = newOp;
return expOp;
}
if (expOp.op == Operator.Not)
{
return expOp.right;
}
}
return OperatorExpression.Build(Operator.Not, exp);
}
示例12: OperatorExpression
private OperatorExpression(Operator op, VisitedExpression left, VisitedExpression right)
{
this.op = op;
this.left = left;
this.right = right;
}
示例13: AddArgument
internal FunctionExpression AddArgument(VisitedExpression visitedExpression)
{
_args.Add(visitedExpression);
return this;
}
示例14: ColumnExpression
public ColumnExpression(VisitedExpression column, string columnName, TypeUsage columnType)
{
_column = column;
_columnName = columnName;
_columnType = columnType;
}
示例15: CastExpression
public CastExpression(VisitedExpression value, string type)
{
_value = value;
_type = type;
}