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. If the return type is unexpected, raises a cast exception.
// The current query is used to produce the context for the new query, but none of its logic
// is used.
// </summary>
// <typeparam name="TResult"> Type of returned value. </typeparam>
// <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. If the return type is unexpected, raises a cast exception.
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 . If the return type is unexpected raises a cast exception . The current query is used to produce the context for the new query but none of its logic is used .
TResult IQueryProvider.Execute<TResult>(Expression expression)
        {
            Check.NotNull(expression, "expression");
            var query = CreateQuery<TResult>(expression);
            return ExecuteSingle(query, expression);
        }
TResult IQueryProvider . Execute < TResult > ( Expression expression ) { Check . NotNull ( expression , " " ) ; var query = CreateQuery < TResult > ( expression ) ; return ExecuteSingle ( query , 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 .
typeparam
Type of returned value.
Type of returned value .