Share via


DbContext.Entry<TEntity> メソッド (TEntity)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

エンティティに関する情報にアクセスし、エンティティに対してアクションを実行できる、指定されたエンティティの DbEntityEntry<TEntity> オブジェクトを取得します。

名前空間:  System.Data.Entity
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public Function Entry(Of TEntity As Class) ( _
    entity As TEntity _
) As DbEntityEntry(Of TEntity)
'使用
Dim instance As DbContext 
Dim entity As TEntity
Dim returnValue As DbEntityEntry(Of TEntity)

returnValue = instance.Entry(entity)
public DbEntityEntry<TEntity> Entry<TEntity>(
    TEntity entity
)
where TEntity : class
public:
generic<typename TEntity>
where TEntity : ref class 
DbEntityEntry<TEntity>^ Entry(
    TEntity entity
)
member Entry : 
        entity:'TEntity -> DbEntityEntry<'TEntity>  when 'TEntity : not struct
JScript does not support generic types and methods.

型パラメーター

  • TEntity
    エンティティの型。

パラメーター

  • entity
    型 : TEntity
    エンティティ。

戻り値

型 : System.Data.Entity.Infrastructure.DbEntityEntry<TEntity>
エンティティのエントリ。

参照

参照

DbContext クラス

Entry オーバーロード

System.Data.Entity 名前空間