DbSet<TEntity> Implicit 转换 (DbSet<TEntity> to DbSet)

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

返回等效非泛型 DbSet 对象。

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

语法

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

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

参数

返回值

类型:System.Data.Entity.DbSet
非泛型集对象。

请参阅

参考

DbSet<TEntity> 类

System.Data.Entity 命名空间