src/Shared/EntityFramework/Core/Objects/ELinq/ObjectQueryProvider.cs
// <summary>
// Executes the given LINQ expression returning a single value, or null if the query yields
// no results.
// The current query is used to produce the context for the new query, but none of its logic
// is used.
// </summary>
// <param name="expression"> Expression to evaluate. </param>
// <returns> Single result from execution. </returns>
Executes the given LINQ expression returning a single value, or null if the query yields
no results.
The current query is used to produce the context for the new query, but none of its logic
is used.
Executes the given LINQ expression returning a single value or null if the query yields no results . The current query is used to produce the context for the new query but none of its logic is used .
object IQueryProvider.Execute(Expression expression)
        {
            Check.NotNull(expression, "expression");
            var query = CreateQuery(expression, expression.Type);
            var objQuery = ((IEnumerable)query).Cast<object>();
            return ExecuteSingle(objQuery, expression);
        }
object IQueryProvider . Execute ( Expression expression ) { Check . NotNull ( expression , " " ) ; var query = CreateQuery ( expression , expression . Type ) ; var objQuery = ( ( IEnumerable ) query ) . Cast < object > ( ) ; return ExecuteSingle ( objQuery , expression ) ; }
Executes the given LINQ expression returning a single value, or null if the query yields
no results.
Executes the given LINQ expression returning a single value or null if the query yields no results .
Single result from execution.
Single result from execution .
expression
Expression
Expression to evaluate.
Expression to evaluate .