DbQuery<TResult> Implicit 转换 (DbQuery<TResult> to DbQuery)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

返回此查询的非泛型 DbQuery 类的新实例。

命名空间:  System.Data.Entity.Infrastructure
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Shared Widening Operator CType ( _
    entry As DbQuery(Of TResult) _
) As DbQuery
用法
Dim input As DbQuery(Of TResult)
Dim output As DbQuery 

output = CType(input, DbQuery)
public static implicit operator DbQuery (
    DbQuery<TResult> entry
)
static implicit operator DbQuery^ (
    DbQuery<TResult>^ entry
)
JScript supports the use of custom casts, but not the declaration of new ones.

参数

返回值

类型:System.Data.Entity.Infrastructure.DbQuery
非泛型版本。

请参阅

参考

DbQuery<TResult> 类

System.Data.Entity.Infrastructure 命名空间