Esempio n. 1
0
        /// <summary>
        /// Registers query parameter that is evaluated from a lambda expression argument.
        /// </summary>
        public object RegisterEvaluatedParameter(Expression expression)
        {
            _modelVisitor.ParameterExpressions.Add(expression);

            return(ExpressionWalker.EvaluateExpression <object>(expression));
        }
Esempio n. 2
0
 /// <summary>
 /// Gets the table alias.
 /// </summary>
 public string GetTableAlias(IFromClause fromClause)
 {
     return(GetTableAlias(ExpressionWalker.GetQuerySource(fromClause.FromExpression) ?? fromClause));
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the table alias.
 /// </summary>
 public string GetTableAlias(JoinClause joinClause)
 {
     return(GetTableAlias(ExpressionWalker.GetQuerySource(joinClause.InnerSequence) ?? joinClause));
 }
Esempio n. 4
0
        /// <summary>
        /// Gets the table alias.
        /// </summary>
        public string GetTableAlias(Expression expression)
        {
            Debug.Assert(expression != null);

            return(GetTableAlias(ExpressionWalker.GetQuerySource(expression)));
        }