Beispiel #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();
 }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 internal SingleExpressionCriteria(Expression expr)
 {
     expr.ThrowIfNullArgument(nameof(expr));
     _expr = expr;
 }