Share via


ODataModelBuilder.AddEntityType(Type) Method

Definition

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

public virtual Microsoft.AspNet.OData.Builder.EntityTypeConfiguration AddEntityType (Type type);
abstract member AddEntityType : Type -> Microsoft.AspNet.OData.Builder.EntityTypeConfiguration
override this.AddEntityType : Type -> Microsoft.AspNet.OData.Builder.EntityTypeConfiguration
Public Overridable Function AddEntityType (type As Type) As EntityTypeConfiguration

Parameters

type
Type

The type to be registered or configured.

Returns

The configuration object for the specified entity type.

Applies to