ComplexTypeConfiguration<TComplexType>.Ignore<TProperty> - метод
[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]
Исключает свойство из модели, в результате чего оно не будет сопоставляться с базой данных.
Пространство имен: System.Data.Entity.ModelConfiguration
Сборка: EntityFramework (в EntityFramework.dll)
Синтаксис
'Декларация
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Function Ignore(Of TProperty) ( _
propertyExpression As Expression(Of Func(Of TComplexType, TProperty)) _
) As ComplexTypeConfiguration(Of TComplexType)
'Применение
Dim instance As ComplexTypeConfiguration
Dim propertyExpression As Expression(Of Func(Of TComplexType, TProperty))
Dim returnValue As ComplexTypeConfiguration(Of TComplexType)
returnValue = instance.Ignore(propertyExpression)
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public ComplexTypeConfiguration<TComplexType> Ignore<TProperty>(
Expression<Func<TComplexType, TProperty>> propertyExpression
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
generic<typename TProperty>
ComplexTypeConfiguration<TComplexType>^ Ignore(
Expression<Func<TComplexType, TProperty>^>^ propertyExpression
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Ignore :
propertyExpression:Expression<Func<'TComplexType, 'TProperty>> -> ComplexTypeConfiguration<'TComplexType>
JScript does not support generic types and methods.
Параметры типа
- TProperty
Тип исключаемого свойства.
Параметры
- propertyExpression
Тип: System.Linq.Expressions.Expression<Func<TComplexType, TProperty>>
Лямбда-выражение, представляющее свойство, которое нужно настроить. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty
Возвращаемое значение
Тип: System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>
Тот же экземпляр класса ComplexTypeConfiguration, что позволяет соединить несколько вызовов в цепочку.