Share via


ODataModelBuilder.EntityType<TEntityType> Method

Definition

Registers an entity type as part of the model and returns an object that can be used to configure the entity type. This method can be called multiple times for the same entity to perform multiple lines of configuration.

public Microsoft.AspNet.OData.Builder.EntityTypeConfiguration<TEntityType> EntityType<TEntityType> () where TEntityType : class;
member this.EntityType : unit -> Microsoft.AspNet.OData.Builder.EntityTypeConfiguration<'EntityType (requires 'EntityType : null)> (requires 'EntityType : null)
Public Function EntityType(Of TEntityType As Class) () As EntityTypeConfiguration(Of TEntityType)

Type Parameters

TEntityType

The type to be registered or configured.

Returns

The configuration object for the specified entity type.

Applies to