ObjectQuery<T>.Select(String, ObjectParameter[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将查询结果限制为仅指定投影中定义的属性。
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)
参数
- projection
- String
定义投影的选定属性的列表。
- parameters
- ObjectParameter[]
此方法中使用的零个或多个参数。
返回
与应用 SELECT 的原始实例等效的新ObjectQuery<T>DbDataRecord实例。
例外
投影为 null 或参数为 null。
投影是空字符串。