StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty> Method (Expression<Func<TStructuralType, TProperty>>)
Excludes a property from the type.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual void Ignore<TProperty>(
Expression<Func<TStructuralType, TProperty>> propertyExpression
)
public:
generic<typename TProperty>
virtual void Ignore(
Expression<Func<TStructuralType, TProperty>^>^ propertyExpression
)
abstract Ignore<'TProperty> :
propertyExpression:Expression<Func<'TStructuralType, 'TProperty>> -> unit
override Ignore<'TProperty> :
propertyExpression:Expression<Func<'TStructuralType, 'TProperty>> -> unit
Public Overridable Sub Ignore(Of TProperty) (
propertyExpression As Expression(Of Func(Of TStructuralType, TProperty))
)
Parameters
propertyExpression
Type: System.Linq.Expressions.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.
Type Parameters
- TProperty
The property type.
Remarks
This method is used to exclude properties from the type that would have been added by convention during model discovery.
See Also
StructuralTypeConfiguration<TStructuralType> Class
System.Web.Http.OData.Builder Namespace
Return to top