Share via


ODataConventionModelBuilder.AddEntity Method

Registers an entity type as part of the model and returns an object that can be used to configure the entity.

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

Syntax

'Declaration
Public Overrides Function AddEntity ( _
    type As Type _
) As EntityTypeConfiguration
'Usage
Dim instance As ODataConventionModelBuilder 
Dim type As Type 
Dim returnValue As EntityTypeConfiguration 

returnValue = instance.AddEntity(type)
public override EntityTypeConfiguration AddEntity(
    Type type
)
public:
virtual EntityTypeConfiguration^ AddEntity(
    Type^ type
) override
abstract AddEntity : 
        type:Type -> EntityTypeConfiguration  
override AddEntity : 
        type:Type -> EntityTypeConfiguration
public override function AddEntity(
    type : Type
) : EntityTypeConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.EntityTypeConfiguration
The configuration object for the specified entity type.

See Also

Reference

ODataConventionModelBuilder Class

System.Web.Http.OData.Builder Namespace