Compartir a través de


DbMemberEntry.Cast<TEntity, TProperty> (Método)

[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].

Devuelve el objeto DbMemberEntry<TEntity, TProperty> genérico equivalente.

Espacio de nombres:  System.Data.Entity.Infrastructure
Ensamblado:  EntityFramework (en EntityFramework.dll)

Sintaxis

'Declaración
Public Function Cast(Of TEntity As Class, TProperty) As DbMemberEntry(Of TEntity, TProperty)
'Uso
Dim instance As DbMemberEntry 
Dim returnValue As DbMemberEntry(Of TEntity, TProperty)

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

Parámetros de tipo

  • TEntity
    Tipo de entidad en que se declara el miembro.
  • TProperty
    Tipo de la propiedad.

Valor devuelto

Tipo: System.Data.Entity.Infrastructure.DbMemberEntry<TEntity, TProperty>
El objeto genérico equivalente.

Vea también

Referencia

DbMemberEntry Clase

System.Data.Entity.Infrastructure (Espacio de nombres)