Поделиться через


DbComplexPropertyEntry<TEntity, TComplexProperty>.Property<TNestedProperty> - метод (Expression<Func<TComplexProperty, TNestedProperty>>)

[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]

Возвращает объект, представляющий вложенное свойство данного свойства. Этот метод может использоваться как для скалярных, так и для сложных свойств.

Пространство имен:  System.Data.Entity.Infrastructure
Сборка:  EntityFramework (в EntityFramework.dll)

Синтаксис

'Декларация
<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)
'Применение
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.

Параметры типа

  • TNestedProperty
    Тип вложенного свойства.

Параметры

Возвращаемое значение

Тип: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TNestedProperty>
Объект, представляющий вложенное свойство.

См. также

Справочник

DbComplexPropertyEntry<TEntity, TComplexProperty> Класс

Property - перегрузка

System.Data.Entity.Infrastructure - пространство имен