Partager via


DbPropertyEntry.Cast<TEntity, TProperty>, méthode

[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]

Retourne l'objet DbPropertyEntry<TEntity, TProperty> générique équivalent.

Espace de noms :  System.Data.Entity.Infrastructure
Assembly :  EntityFramework (dans EntityFramework.dll)

Syntaxe

'Déclaration
Public Function Cast(Of TEntity As Class, TProperty) As DbPropertyEntry(Of TEntity, TProperty)
'Utilisation
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.

Paramètres de type

  • TEntity
    Type de l'entité sur laquelle le membre est déclaré.
  • TProperty
    Type de la propriété.

Valeur de retour

Type : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
Objet générique équivalent.

Voir aussi

Référence

DbPropertyEntry Classe

Espace de noms System.Data.Entity.Infrastructure