次の方法で共有


DbReferenceEntry.Cast<TEntity, TProperty> メソッド

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

同等のジェネリック DbReferenceEntry<TEntity, TProperty> オブジェクトを返します。

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

構文

'宣言
Public Function Cast(Of TEntity As Class, TProperty) As DbReferenceEntry(Of TEntity, TProperty)
'使用
Dim instance As DbReferenceEntry 
Dim returnValue As DbReferenceEntry(Of TEntity, TProperty)

returnValue = instance.Cast()
public DbReferenceEntry<TEntity, TProperty> Cast<TEntity, TProperty>()
where TEntity : class
public:
generic<typename TEntity, typename TProperty>
where TEntity : ref class 
DbReferenceEntry<TEntity, TProperty>^ Cast()
member Cast : unit -> DbReferenceEntry<'TEntity, 'TProperty>  when 'TEntity : not struct
JScript does not support generic types and methods.

型パラメーター

  • TEntity
    そのメンバーの宣言に使用されているエンティティの型。
  • TProperty
    プロパティの型。

戻り値

型 : System.Data.Entity.Infrastructure.DbReferenceEntry<TEntity, TProperty>
同等のジェネリック オブジェクト。

参照

参照

DbReferenceEntry クラス

System.Data.Entity.Infrastructure 名前空間