Metodo DbComplexPropertyEntry<TEntity, TComplexProperty>.Property<TNestedProperty> (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à annidata della proprietà. Questo metodo può essere utilizzato sia per le proprietà scalari che per quelle complesse.
Spazio dei nomi: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public Function Property(Of TNestedProperty) ( _
propertyName As String _
) As DbPropertyEntry(Of TEntity, TNestedProperty)
'Utilizzo
Dim instance As DbComplexPropertyEntry
Dim propertyName As String
Dim returnValue As DbPropertyEntry(Of TEntity, TNestedProperty)
returnValue = instance.Property(propertyName)
public DbPropertyEntry<TEntity, TNestedProperty> Property<TNestedProperty>(
string propertyName
)
public:
generic<typename TNestedProperty>
DbPropertyEntry<TEntity, TNestedProperty>^ Property(
String^ propertyName
)
member Property :
propertyName:string -> DbPropertyEntry<'TEntity, 'TNestedProperty>
JScript does not support generic types and methods.
Parametri di tipo
- TNestedProperty
Tipo della proprietà annidata.
Parametri
- propertyName
Tipo: System.String
Nome della proprietà annidata.
Valore restituito
Tipo: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TNestedProperty>
Oggetto che rappresenta la proprietà annidata.