當前位置: 首頁>>代碼示例>>C#>>正文


C# SqlGenerators.VisitedExpression類代碼示例

本文整理匯總了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);
 }
開發者ID:Emill,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例2: IsNullExpression

 public IsNullExpression(VisitedExpression argument)
 {
     _argument = argument;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例3: LimitExpression

 public LimitExpression(VisitedExpression arg)
 {
     _arg = arg;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例4: AddArgument

 internal void AddArgument(VisitedExpression visitedExpression)
 {
     _args.Add(visitedExpression);
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例5: AppendTarget

 public void AppendTarget(VisitedExpression target)
 {
     Append(target);
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例6: AppendFrom

 public void AppendFrom(VisitedExpression from)
 {
     Append(from);
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例7: ExistsExpression

 public ExistsExpression(VisitedExpression argument)
 {
     _argument = argument;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:4,代碼來源:VisitedExpression.cs

示例8: NegatableBooleanExpression

 public NegatableBooleanExpression(DbExpressionKind booleanOperator, VisitedExpression left, VisitedExpression right)
 {
     _booleanOperator = booleanOperator;
     _left = left;
     _right = right;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:6,代碼來源:VisitedExpression.cs

示例9: NegateExpression

 public NegateExpression(VisitedExpression argument)
 {
     _argument = argument;
     Negated = true;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:5,代碼來源:VisitedExpression.cs

示例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");
     }
 }
開發者ID:Emill,項目名稱:Npgsql,代碼行數:15,代碼來源:VisitedExpression.cs

示例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);
        }
開發者ID:Emill,項目名稱:Npgsql,代碼行數:25,代碼來源:VisitedExpression.cs

示例12: OperatorExpression

 private OperatorExpression(Operator op, VisitedExpression left, VisitedExpression right)
 {
     this.op = op;
     this.left = left;
     this.right = right;
 }
開發者ID:Emill,項目名稱:Npgsql,代碼行數:6,代碼來源:VisitedExpression.cs

示例13: AddArgument

 internal FunctionExpression AddArgument(VisitedExpression visitedExpression)
 {
     _args.Add(visitedExpression);
     return this;
 }
開發者ID:Emill,項目名稱:Npgsql,代碼行數:5,代碼來源:VisitedExpression.cs

示例14: ColumnExpression

 public ColumnExpression(VisitedExpression column, string columnName, TypeUsage columnType)
 {
     _column = column;
     _columnName = columnName;
     _columnType = columnType;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:6,代碼來源:VisitedExpression.cs

示例15: CastExpression

 public CastExpression(VisitedExpression value, string type)
 {
     _value = value;
     _type = type;
 }
開發者ID:kristofen,項目名稱:Npgsql,代碼行數:5,代碼來源:VisitedExpression.cs


注:本文中的Npgsql.SqlGenerators.VisitedExpression類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。