Condividi tramite


Metodo DbComplexPropertyEntry<TEntity, TComplexProperty>.Property<TNestedProperty> (Expression<Func<TComplexProperty, TNestedProperty>>)

[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
<SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId := "0#",  _
    Justification := "Rule predates more fluent naming conventions.")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Function Property(Of TNestedProperty) ( _
    property As Expression(Of Func(Of TComplexProperty, TNestedProperty)) _
) As DbPropertyEntry(Of TEntity, TNestedProperty)
'Utilizzo
Dim instance As DbComplexPropertyEntry 
Dim property As Expression(Of Func(Of TComplexProperty, TNestedProperty))
Dim returnValue As DbPropertyEntry(Of TEntity, TNestedProperty)

returnValue = instance.Property(property)
[SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = "0#", 
    Justification = "Rule predates more fluent naming conventions.")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public DbPropertyEntry<TEntity, TNestedProperty> Property<TNestedProperty>(
    Expression<Func<TComplexProperty, TNestedProperty>> property
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = L"0#", 
    Justification = L"Rule predates more fluent naming conventions.")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
generic<typename TNestedProperty>
DbPropertyEntry<TEntity, TNestedProperty>^ Property(
    Expression<Func<TComplexProperty, TNestedProperty>^>^ property
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = "0#", 
    Justification = "Rule predates more fluent naming conventions.")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Property : 
        property:Expression<Func<'TComplexProperty, 'TNestedProperty>> -> DbPropertyEntry<'TEntity, 'TNestedProperty> 
JScript does not support generic types and methods.

Parametri di tipo

  • TNestedProperty
    Tipo della proprietà annidata.

Parametri

Valore restituito

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

Vedere anche

Riferimento

DbComplexPropertyEntry<TEntity, TComplexProperty> Classe

Overload Property

Spazio dei nomi System.Data.Entity.Infrastructure