Exemplo n.º 1
0
        internal Order(Expression expr, OrderType order)
        {
            expr.ThrowIfNullArgument(nameof(expr));

            _expr = expr;
            _order = order;
        }
 public virtual string Translate(Expression expression, IObjectMapInfo map)
 {
     expression.ThrowIfNullArgument(nameof(expression));
     map.ThrowIfNullArgument(nameof(map));
     _map = map;
     this._str = new StringBuilder();
     this.Visit(expression);
     if (this._str.BracketedBy(StringPair.Parenthesis))
         this._str.UnBracketing(StringPair.Parenthesis);
     return this._str.ToString();
 }
Exemplo n.º 3
0
Arquivo: View.cs Projeto: rexzh/RexToy
        protected JoinView(View left, JoinType joinType, View right, Expression joinKey)
        {
            left.ThrowIfNullArgument(nameof(left));
            right.ThrowIfNullArgument(nameof(right));
            joinType.ThrowIfEnumOutOfRange();
            joinKey.ThrowIfNullArgument(nameof(joinKey));

            _left = left;
            _right = right;
            _joinType = joinType;
            _joinKey = joinKey;

            this._viewType = ViewType.Join;
        }
Exemplo n.º 4
0
 internal SingleExpressionCriteria(Expression expr)
 {
     expr.ThrowIfNullArgument(nameof(expr));
     _expr = expr;
 }