Пример #1
0
 internal Binding(Expression linqExpression, CqtExpression cqtExpression)
 {
     EntityUtil.CheckArgumentNull(linqExpression, "linqExpression");
     EntityUtil.CheckArgumentNull(cqtExpression, "cqtExpression");
     LinqExpression = linqExpression;
     CqtExpression  = cqtExpression;
 }
Пример #2
0
 internal bool TryGetBoundExpression(Expression linqExpression, out CqtExpression cqtExpression)
 {
     cqtExpression = _scopes
         .Where(binding => binding.LinqExpression == linqExpression)
         .Select(binding => binding.CqtExpression)
         .FirstOrDefault();
     return cqtExpression != null;
 }
Пример #3
0
 internal bool TryGetBoundExpression(Expression linqExpression, out CqtExpression cqtExpression)
 {
     cqtExpression = _scopes
                     .Where(binding => binding.LinqExpression == linqExpression)
                     .Select(binding => binding.CqtExpression)
                     .FirstOrDefault();
     return(cqtExpression != null);
 }
Пример #4
0
 internal Binding(Expression linqExpression, CqtExpression cqtExpression)
 {
     EntityUtil.CheckArgumentNull(linqExpression, "linqExpression");
     EntityUtil.CheckArgumentNull(cqtExpression, "cqtExpression");
     LinqExpression = linqExpression;
     CqtExpression = cqtExpression;
 }
Пример #5
0
        internal DbBinaryExpression(DbExpressionKind kind, TypeUsage type, DbExpression left, DbExpression right)
            : base(kind, type)
        {
            Debug.Assert(left != null, "DbBinaryExpression.Left cannot be null");
            Debug.Assert(right != null, "DbBinaryExpression.Right cannot be null");

            this._left  = left;
            this._right = right;
        }