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


StructuralTypeConfiguration<TStructuralType>.Property - метод (Expression<Func<TStructuralType, DateTime>>)

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

Настраивает свойство DateTime, определенное для этого типа.

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

Синтаксис

'Декларация
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
Public Function Property ( _
    propertyExpression As Expression(Of Func(Of TStructuralType, DateTime)) _
) As DateTimePropertyConfiguration
'Применение
Dim instance As StructuralTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TStructuralType, DateTime))
Dim returnValue As DateTimePropertyConfiguration 

returnValue = instance.Property(propertyExpression)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public DateTimePropertyConfiguration Property(
    Expression<Func<TStructuralType, DateTime>> propertyExpression
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
public:
DateTimePropertyConfiguration^ Property(
    Expression<Func<TStructuralType, DateTime>^>^ propertyExpression
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
member Property : 
        propertyExpression:Expression<Func<'TStructuralType, DateTime>> -> DateTimePropertyConfiguration
public function Property(
    propertyExpression : Expression<Func<TStructuralType, DateTime>>
) : DateTimePropertyConfiguration

Параметры

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

Тип: System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Объект настройки, который можно использовать для настройки этого свойства.

См. также

Справочник

StructuralTypeConfiguration<TStructuralType> Класс

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

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