Compartir a través de


SingletonConfiguration<TEntityType>.HasDerivedTypeConstraints Método

Definición

Sobrecargas

HasDerivedTypeConstraints(Type[])

Agrega subtipos a la lista de restricciones de tipo derivado.

HasDerivedTypeConstraints<TDerivedType>()

Agrega TDerivedType a la lista de restricciones de tipo derivado.

HasDerivedTypeConstraints(Type[])

Agrega subtipos a la lista de restricciones de tipo derivado.

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)

Parámetros

subtypes
Type[]

Subtipos para los que se debe agregar la restricción.

Devoluciones

Objeto de configuración actualizado.

Se aplica a

HasDerivedTypeConstraints<TDerivedType>()

Agrega TDerivedType a la lista de restricciones de tipo derivado.

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)

Parámetros de tipo

TDerivedType

Devoluciones

Objeto de configuración actualizado.

Se aplica a