SingletonConfiguration<TEntityType>.HasDerivedTypeConstraints 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.
Overloads
HasDerivedTypeConstraints(Type[]) |
Adds subtypes to the list of derived type constraints. |
HasDerivedTypeConstraints<TDerivedType>() |
Adds TDerivedType to the list of derived type constraints. |
HasDerivedTypeConstraints(Type[])
Adds subtypes to the list of derived type constraints.
public Microsoft.AspNet.OData.Builder.SingletonConfiguration<TEntityType> HasDerivedTypeConstraints (params Type[] subtypes);
member this.HasDerivedTypeConstraints : Type[] -> Microsoft.AspNet.OData.Builder.SingletonConfiguration<'EntityType (requires 'EntityType : null)>
Public Function HasDerivedTypeConstraints (ParamArray subtypes As Type()) As SingletonConfiguration(Of TEntityType)
Parameters
- subtypes
- Type[]
The subtypes for which the constraint needs to be added.
Returns
Updated configuration object.
Applies to
HasDerivedTypeConstraints<TDerivedType>()
Adds TDerivedType to the list of derived type constraints.
public Microsoft.AspNet.OData.Builder.SingletonConfiguration<TEntityType> HasDerivedTypeConstraints<TDerivedType> () where TDerivedType : TEntityType;
member this.HasDerivedTypeConstraints : unit -> Microsoft.AspNet.OData.Builder.SingletonConfiguration<'EntityType (requires 'EntityType : null)>
Public Function HasDerivedTypeConstraints(Of TDerivedType As TEntityType) () As SingletonConfiguration(Of TEntityType)
Type Parameters
- TDerivedType
Returns
Updated configuration object.