ComplexTypeConfiguration<TComplexType>.Ignore<TProperty> Method (Expression<Func<TComplexType, TProperty>>)
Excludes a property from the model so that it will not be mapped to the database.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] [SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] public ComplexTypeConfiguration<TComplexType> Ignore<TProperty>( Expression<Func<TComplexType, TProperty>> propertyExpression )
Parameters
- propertyExpression
-
Type:
System.Linq.Expressions.Expression<Func<TComplexType, TProperty>>
A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty
Return Value
Type: System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>The same ComplexTypeConfiguration instance so that multiple calls can be chained.
Type Parameters
- TProperty
The type of the property to be ignored.