Beispiel #1
0
 public IndexExpression(BinaryExpressionKind kind,
                        IndexExpression expr1, IndexExpression expr2)
 {
     ArityKind  = IndexExpressionArityKind.Binary;
     BinaryKind = kind;
     Expr1      = expr1;
     Expr2      = expr2;
 }
Beispiel #2
0
 public IndexExpression(BinaryExpressionKind kind,
                        IndexExpression expr1, IndexExpression expr2)
 {
     ArityKind  = IndexExpressionArityKind.Binary;
     BinaryKind = kind;
     Expr1      = expr1 ?? throw new ArgumentNullException(nameof(expr1));
     Expr2      = expr2 ?? throw new ArgumentNullException(nameof(expr2));
 }
 public static void Verify(this DbBinaryExpression expression,
                           BinaryExpressionKind expectedKind,
                           Column expectedLeft,
                           Column expectedRight)
 {
     Assert.AreEqual(expectedKind, expression.Kind);
     Assert.AreEqual(expectedLeft.DbExpression, expression.Left);
     Assert.AreEqual(expectedRight.DbExpression, expression.Right);
 }
Beispiel #4
0
        public ElementExpression(BinaryExpressionKind kind,
                                 ElementExpression expr1, ElementExpression expr2)
        {
            ArityKind  = ArityKind.Binary;
            UnaryKind  = UnaryExpressionKind.None;
            BinaryKind = kind;

            Expr1 = expr1 ?? throw new ArgumentNullException(nameof(expr1));
            Expr2 = expr2 ?? throw new ArgumentNullException(nameof(expr2));
        }
Beispiel #5
0
        public ElementExpression(BinaryExpressionKind kind,
                                 ElementExpression expr1, ElementExpression expr2)
        {
            ArityKind  = ArityKind.Binary;
            UnaryKind  = UnaryExpressionKind.None;
            BinaryKind = kind;

            Expr1 = expr1;
            Expr2 = expr2;
        }
Beispiel #6
0
        /// <summary>
        /// Initializes a new instance <see cref="DbBinaryExpression"/> class.
        /// </summary>
        /// <param name="dataType">The data type.</param>
        /// <param name="kind">Specifies the operation of the expression.</param>
        /// <param name="left">The left expression operand.</param>
        /// <param name="right">The right expression operand.</param>
        public DbBinaryExpression(Type dataType, BinaryExpressionKind kind, DbExpression left, DbExpression right)
            : base(dataType)
        {
            left.VerifyNotNull(nameof(left));
            right.VerifyNotNull(nameof(right));

            Kind  = kind;
            Left  = left;
            Right = right;
        }
 public BinaryExpressionMessageFilter(MessageFilter first, MessageFilter second, BinaryExpressionKind kind)
 {
     _first  = first;
     _second = second;
     _kind   = kind;
 }