Condividi tramite


Metodo DbEntityEntry<TEntity>.ComplexProperty<TComplexProperty> (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à complessa dell'entità.

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

Sintassi

'Dichiarazione
Public Function ComplexProperty(Of TComplexProperty) ( _
    propertyName As String _
) As DbComplexPropertyEntry(Of TEntity, TComplexProperty)
'Utilizzo
Dim instance As DbEntityEntry 
Dim propertyName As String 
Dim returnValue As DbComplexPropertyEntry(Of TEntity, TComplexProperty)

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

Parametri di tipo

  • TComplexProperty
    Tipo della proprietà complessa.

Parametri

  • propertyName
    Tipo: System.String
    Nome della proprietà complessa.

Valore restituito

Tipo: System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TComplexProperty>
Oggetto che rappresenta la proprietà complessa.

Vedere anche

Riferimento

DbEntityEntry<TEntity> Classe

Overload ComplexProperty

Spazio dei nomi System.Data.Entity.Infrastructure