StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.