Share via


EntitySetConfiguration<TEntityType>.HasDerivedTypeConstraints Method

Definition

Adds subtypes to the list of derived type constraints.

public Microsoft.AspNet.OData.Builder.EntitySetConfiguration<TEntityType> HasDerivedTypeConstraints (params Type[] subtypes);
member this.HasDerivedTypeConstraints : Type[] -> Microsoft.AspNet.OData.Builder.EntitySetConfiguration<'EntityType (requires 'EntityType : null)>
Public Function HasDerivedTypeConstraints (ParamArray subtypes As Type()) As EntitySetConfiguration(Of TEntityType)

Parameters

subtypes
Type[]

The subtypes for which the constraint needs to be added.

Returns

Updated configuration object.

Applies to