StructuralTypeConfiguration<TStructuralType>.Property - метод (Expression<Func<TStructuralType, DbGeography>>)
[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]
Настраивает свойство DbGeography, определенное для этого типа.
Пространство имен: 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, DbGeography)) _
) As PrimitivePropertyConfiguration
'Применение
Dim instance As StructuralTypeConfiguration
Dim propertyExpression As Expression(Of Func(Of TStructuralType, DbGeography))
Dim returnValue As PrimitivePropertyConfiguration
returnValue = instance.Property(propertyExpression)
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public PrimitivePropertyConfiguration Property(
Expression<Func<TStructuralType, DbGeography>> propertyExpression
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
PrimitivePropertyConfiguration^ Property(
Expression<Func<TStructuralType, DbGeography^>^>^ propertyExpression
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Property :
propertyExpression:Expression<Func<'TStructuralType, DbGeography>> -> PrimitivePropertyConfiguration
public function Property(
propertyExpression : Expression<Func<TStructuralType, DbGeography>>
) : PrimitivePropertyConfiguration
Параметры
- propertyExpression
Тип: System.Linq.Expressions.Expression<Func<TStructuralType, DbGeography>>
Лямбда-выражение, представляющее свойство, которое нужно настроить. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty
Возвращаемое значение
Тип: System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Объект настройки, который можно использовать для настройки этого свойства.
См. также
Справочник
StructuralTypeConfiguration<TStructuralType> Класс
System.Data.Entity.ModelConfiguration.Configuration - пространство имен