src/Shared/EntityFramework/Core/Objects/ObjectQuery`.cs
/// <summary>Limits the query results to only the property specified in the projection.</summary>
/// <returns>
/// A new <see cref="T:System.Data.Entity.Core.Objects.ObjectQuery`1" /> instance of a type compatible with the specific projection. The returned
/// <see
///     cref="T:System.Data.Entity.Core.Objects.ObjectQuery`1" />
/// is equivalent to the original instance with SELECT VALUE applied.
/// </returns>
/// <param name="projection">The projection list.</param>
/// <param name="parameters">An optional set of query parameters that should be in scope when parsing.</param>
/// <typeparam name="TResultType">
/// The type of the <see cref="T:System.Data.Entity.Core.Objects.ObjectQuery`1" /> returned by the
/// <see
///     cref="M:System.Data.Entity.Core.Objects.ObjectQuery`1.SelectValue``1(System.String,System.Data.Entity.Core.Objects.ObjectParameter[])" />
/// method.
/// </typeparam>
/// <exception cref="T:System.ArgumentNullException"> projection  is null or parameters  is null.</exception>
/// <exception cref="T:System.ArgumentException">The  projection  is an empty string.</exception>
Limits the query results to only the property specified in the projection.
Limits the query results to only the property specified in the projection .
public ObjectQuery<TResultType> SelectValue<TResultType>(string projection, params ObjectParameter[] parameters)
        {
            Check.NotEmpty(projection, "projection");
            Check.NotNull(parameters, "parameters");
            QueryState.ObjectContext.MetadataWorkspace.ImplicitLoadAssemblyForType(typeof(TResultType), Assembly.GetCallingAssembly());
            return
                new ObjectQuery<TResultType>(
                    EntitySqlQueryBuilder.SelectValue(QueryState, Name, projection, parameters, typeof(TResultType)));
        }
public ObjectQuery < TResultType > SelectValue < TResultType > ( string projection , params ObjectParameter [ ] parameters ) { Check . NotEmpty ( projection , " " ) ; Check . NotNull ( parameters , " " ) ; QueryState . ObjectContext . MetadataWorkspace . ImplicitLoadAssemblyForType ( typeof ( TResultType ) , Assembly . GetCallingAssembly ( ) ) ; return new ObjectQuery < TResultType > ( EntitySqlQueryBuilder . SelectValue ( QueryState , Name , projection , parameters , typeof ( TResultType ) ) ) ; }
Limits the query results to only the property specified in the projection.
Limits the query results to only the property specified in the projection .
// SQLPUDT 484974: Make sure TResultType is loaded.
A new  instance of a type compatible with the specific projection. The returned


A new instance of a type compatible with the specific projection . The returned
projection  is null or parameters  is null.
projection is null or parameters is null .
The  projection  is an empty string.
The projection is an empty string .
projection
string
The projection list.
The projection list .
parameters
An optional set of query parameters that should be in scope when parsing.
An optional set of query parameters that should be in scope when parsing .
typeparam
The type of the  returned by the

method.
The type of the returned by the method .