Partager via


DbEntityEntry<TEntity>.ComplexProperty<TComplexProperty>, méthode (Expression<Func<TEntity, TComplexProperty>>)

[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é complexe de cette entité.

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

Syntaxe

'Déclaration
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId := "0#",  _
    Justification := "Rule predates more fluent naming conventions.")> _
Public Function ComplexProperty(Of TComplexProperty) ( _
    property As Expression(Of Func(Of TEntity, TComplexProperty)) _
) As DbComplexPropertyEntry(Of TEntity, TComplexProperty)
'Utilisation
Dim instance As DbEntityEntry 
Dim property As Expression(Of Func(Of TEntity, TComplexProperty))
Dim returnValue As DbComplexPropertyEntry(Of TEntity, TComplexProperty)

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

Paramètres de type

  • TComplexProperty
    Type de la propriété complexe.

Paramètres

Valeur de retour

Type : System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TComplexProperty>
Objet qui représente la propriété complexe.

Voir aussi

Référence

DbEntityEntry<TEntity> Classe

Surcharge ComplexProperty

Espace de noms System.Data.Entity.Infrastructure