Share via


StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty> Method (Expression<Func<TStructuralType, TProperty>>)

 

Excludes a property from the type.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.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

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.OData.Builder Namespace

Return to top