Condividi tramite


Metodo DbPropertyEntry.Cast<TEntity, TProperty>

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Restituisce l'oggetto DbPropertyEntry<TEntity, TProperty> generico equivalente.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Function Cast(Of TEntity As Class, TProperty) As DbPropertyEntry(Of TEntity, TProperty)
'Utilizzo
Dim instance As DbPropertyEntry 
Dim returnValue As DbPropertyEntry(Of TEntity, TProperty)

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

Parametri di tipo

  • TEntity
    Tipo di entità in cui viene dichiarato il membro.
  • TProperty
    Tipo della proprietà.

Valore restituito

Tipo: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
Oggetto generico equivalente.

Vedere anche

Riferimento

DbPropertyEntry Classe

Spazio dei nomi System.Data.Entity.Infrastructure