共用方式為


DbComplexPropertyEntry<TEntity, TComplexProperty>.ComplexProperty<TNestedComplexProperty> 方法 (Expression<Func<TComplexProperty, TNestedComplexProperty>>)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

取得代表此屬性之巢狀複雜屬性的物件。

命名空間:  System.Data.Entity.Infrastructure
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

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

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, TNestedComplexProperty> ComplexProperty<TNestedComplexProperty>(
    Expression<Func<TComplexProperty, TNestedComplexProperty>> 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 TNestedComplexProperty>
DbComplexPropertyEntry<TEntity, TNestedComplexProperty>^ ComplexProperty(
    Expression<Func<TComplexProperty, TNestedComplexProperty>^>^ 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<'TComplexProperty, 'TNestedComplexProperty>> -> DbComplexPropertyEntry<'TEntity, 'TNestedComplexProperty> 
JScript does not support generic types and methods.

類型參數

  • TNestedComplexProperty
    巢狀屬性的類型。

參數

傳回值

類型:System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TNestedComplexProperty>
表示巢狀屬性的物件。

請參閱

參考

DbComplexPropertyEntry<TEntity, TComplexProperty> 類別

ComplexProperty 多載

System.Data.Entity.Infrastructure 命名空間