src/Shared/EntityFramework/Core/Objects/ELinq/ObjectQueryProvider.cs
// <summary>
// Creates a new query instance using the given LINQ expresion.
// The current query is used to produce the context for the new query, but none of its logic
// is used.
// </summary>
// <typeparam name="TElement"> Element type for query result. </typeparam>
// <param name="expression"> LINQ expression forming the query. </param>
// <returns> ObjectQuery implementing the expression logic. </returns>
Creates a new query instance using the given LINQ expresion.
The current query is used to produce the context for the new query, but none of its logic
is used.
Creates a new query instance using the given LINQ expresion . The current query is used to produce the context for the new query but none of its logic is used .
IQueryable<TElement> IQueryProvider.CreateQuery<TElement>(Expression expression)
        {
            Check.NotNull(expression, "expression");
            if (!typeof(IQueryable<TElement>).IsAssignableFrom(expression.Type))
            {
                throw new ArgumentException(Strings.ELinq_ExpressionMustBeIQueryable, "expression");
            }
            return CreateQuery<TElement>(expression);
        }
IQueryable < TElement > IQueryProvider . CreateQuery < TElement > ( Expression expression ) { Check . NotNull ( expression , " " ) ; if ( ! typeof ( IQueryable < TElement > ) . IsAssignableFrom ( expression . Type ) ) { throw new ArgumentException ( Strings . ELinq_ExpressionMustBeIQueryable , " " ) ; } return CreateQuery < TElement > ( expression ) ; }
Creates a new query instance using the given LINQ expresion.
Creates a new query instance using the given LINQ expresion .
ObjectQuery implementing the expression logic.
ObjectQuery implementing the expression logic .
expression
Expression
LINQ expression forming the query.
LINQ expression forming the query .
typeparam
Element type for query result.
Element type for query result .