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


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

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

Настраивает свойство [T:System.DateTime?], определенное для этого типа.

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

Синтаксис

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

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

Параметры

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

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

См. также

Справочник

StructuralTypeConfiguration<TStructuralType> Класс

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

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