Condividi tramite


Metodo DbEntityEntry<TEntity>.Property<TProperty> (String)

[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.]

Ottiene un oggetto che rappresenta una proprietà scalare o complessa dell'entità.

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

Sintassi

'Dichiarazione
Public Function Property(Of TProperty) ( _
    propertyName As String _
) As DbPropertyEntry(Of TEntity, TProperty)
'Utilizzo
Dim instance As DbEntityEntry 
Dim propertyName As String 
Dim returnValue As DbPropertyEntry(Of TEntity, TProperty)

returnValue = instance.Property(propertyName)
public DbPropertyEntry<TEntity, TProperty> Property<TProperty>(
    string propertyName
)
public:
generic<typename TProperty>
DbPropertyEntry<TEntity, TProperty>^ Property(
    String^ propertyName
)
member Property : 
        propertyName:string -> DbPropertyEntry<'TEntity, 'TProperty> 
JScript does not support generic types and methods.

Parametri di tipo

  • TProperty
    Tipo della proprietà.

Parametri

Valore restituito

Tipo: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>
Oggetto che rappresenta la proprietà.

Vedere anche

Riferimento

DbEntityEntry<TEntity> Classe

Overload Property

Spazio dei nomi System.Data.Entity.Infrastructure