Пример #1
0
        protected DbExpressionSet UpdateBlock(DbExpressionSet block, IList <Expression> commands)
        {
            if (block.Expressions != commands)
            {
                return(new DbExpressionSet(commands));
            }

            return(block);
        }
        protected virtual bool CompareBlock(DbExpressionSet x, DbExpressionSet y)
        {
            if (x.Expressions.Count != y.Expressions.Count)
            {
                return(false);
            }

            for (int i = 0, n = x.Expressions.Count; i < n; i++)
            {
                if (!Compare(x.Expressions[i], y.Expressions[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
 protected DbExpressionSet UpdateBlock(DbExpressionSet block, IList<Expression> commands)
 {
     if (block.Expressions != commands)
         return new DbExpressionSet(commands);
     
     return block;
 }
 protected virtual Expression VisitBlock(DbExpressionSet block)
 {
     var commands = VisitExpressionList(block.Expressions);
     return UpdateBlock(block, commands);
 }
Пример #5
0
 protected override Expression VisitBlock(DbExpressionSet block)
 {
     return(MakeSequence(this.VisitExpressionList(block.Expressions)));
 }
Пример #6
0
 protected override Expression VisitBlock(DbExpressionSet block)
 {
     throw new NotSupportedException();
 }
        protected virtual bool CompareBlock(DbExpressionSet x, DbExpressionSet y)
        {
            if (x.Expressions.Count != y.Expressions.Count)
                return false;

            for (int i = 0, n = x.Expressions.Count; i < n; i++)
            {
                if (!Compare(x.Expressions[i], y.Expressions[i]))
                    return false;
            }
            return true;
        }
Пример #8
0
        protected virtual Expression VisitBlock(DbExpressionSet block)
        {
            var commands = VisitExpressionList(block.Expressions);

            return(UpdateBlock(block, commands));
        }