Partager via


DbComplexPropertyEntry<TEntity, TComplexProperty>.Property<TNestedProperty>, méthode (Expression<Func<TComplexProperty, TNestedProperty>>)

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

Obtient un objet qui représente une propriété imbriquée de cette propriété. Cette méthode peut être utilisée à la fois pour les propriétés scalaires ou complexes.

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

Syntaxe

'Déclaration
<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)
'Utilisation
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.

Paramètres de type

  • TNestedProperty
    Type de la propriété imbriquée.

Paramètres

Valeur de retour

Type : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TNestedProperty>
Objet qui représente la propriété imbriquée.

Voir aussi

Référence

DbComplexPropertyEntry<TEntity, TComplexProperty> Classe

Surcharge Property

Espace de noms System.Data.Entity.Infrastructure