Share via


EntityTypeConfiguration<TEntityType>.DerivesFrom<TBaseType> Method

Sets the base type of this entity type.

Namespace:  System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Function DerivesFrom(Of TBaseType As Class) As EntityTypeConfiguration(Of TEntityType)
'Usage
Dim instance As EntityTypeConfiguration 
Dim returnValue As EntityTypeConfiguration(Of TEntityType)

returnValue = instance.DerivesFrom()
public EntityTypeConfiguration<TEntityType> DerivesFrom<TBaseType>()
where TBaseType : class
public:
generic<typename TBaseType>
where TBaseType : ref class 
EntityTypeConfiguration<TEntityType>^ DerivesFrom()
member DerivesFrom : unit -> EntityTypeConfiguration<'TEntityType>  when 'TBaseType : not struct
JScript does not support generic types and methods.

Type Parameters

  • TBaseType
    The base entity type.

Return Value

Type: System.Web.Http.OData.Builder.EntityTypeConfiguration<TEntityType>
Returns itself so that multiple calls can be chained.

See Also

Reference

EntityTypeConfiguration<TEntityType> Class

System.Web.Http.OData.Builder Namespace