Share via


StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty> Method

Definition

Excludes a property from the type.

public virtual void Ignore<TProperty> (System.Linq.Expressions.Expression<Func<TStructuralType,TProperty>> propertyExpression);
abstract member Ignore : System.Linq.Expressions.Expression<Func<'StructuralType, 'Property>> -> unit
override this.Ignore : System.Linq.Expressions.Expression<Func<'StructuralType, 'Property>> -> unit
Public Overridable Sub Ignore(Of TProperty) (propertyExpression As Expression(Of Func(Of TStructuralType, TProperty)))

Type Parameters

TProperty

The property type.

Parameters

propertyExpression
Expression<Func<TStructuralType,TProperty>>

A lambda expression representing the navigation property for the relationship. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

Remarks

This method is used to exclude properties from the type that would have been added by convention during model discovery.

Applies to