ComplexTypeConfiguration<TComplexType>.Ignore<TProperty> Method

Definition

Excludes a property from the model so that it will not be mapped to the database.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType> Ignore<TProperty> (System.Linq.Expressions.Expression<Func<TComplexType,TProperty>> propertyExpression);
member this.Ignore : System.Linq.Expressions.Expression<Func<'ComplexType, 'Property>> -> System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)>
Public Function Ignore(Of TProperty) (propertyExpression As Expression(Of Func(Of TComplexType, TProperty))) As ComplexTypeConfiguration(Of TComplexType)

Type Parameters

TProperty

The type of the property to be ignored.

Parameters

propertyExpression
Expression<Func<TComplexType,TProperty>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

The same ComplexTypeConfiguration instance so that multiple calls can be chained.

Attributes

Applies to