次の方法で共有


DbSet<TEntity> Implicit 変換 (DbSet<TEntity> to DbSet)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、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 名前空間