ObjectQuery<T>.Select(String, ObjectParameter[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Limits the query results to only the properties that are defined in the specified projection.
public System.Data.Entity.Core.Objects.ObjectQuery<System.Data.Common.DbDataRecord> Select (string projection, params System.Data.Entity.Core.Objects.ObjectParameter[] parameters);
member this.Select : string * System.Data.Entity.Core.Objects.ObjectParameter[] -> System.Data.Entity.Core.Objects.ObjectQuery<System.Data.Common.DbDataRecord>
Public Function Select (projection As String, ParamArray parameters As ObjectParameter()) As ObjectQuery(Of DbDataRecord)
Parameters
- projection
- String
The list of selected properties that defines the projection.
- parameters
- ObjectParameter[]
Zero or more parameters that are used in this method.
Returns
A new ObjectQuery<T> instance of type DbDataRecord that is equivalent to the original instance with SELECT applied.
Exceptions
projection is null or parameters is null.
The projection is an empty string.
Applies to
Entity Framework