本文整理汇总了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;
}