Share via


ODataConventionModelBuilder.AddEntitySet Method

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

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

Syntax

'Declaration
Public Overrides Function AddEntitySet ( _
    name As String, _
    entityType As EntityTypeConfiguration _
) As EntitySetConfiguration
'Usage
Dim instance As ODataConventionModelBuilder 
Dim name As String 
Dim entityType As EntityTypeConfiguration 
Dim returnValue As EntitySetConfiguration 

returnValue = instance.AddEntitySet(name, _
    entityType)
public override EntitySetConfiguration AddEntitySet(
    string name,
    EntityTypeConfiguration entityType
)
public:
virtual EntitySetConfiguration^ AddEntitySet(
    String^ name, 
    EntityTypeConfiguration^ entityType
) override
abstract AddEntitySet : 
        name:string * 
        entityType:EntityTypeConfiguration -> EntitySetConfiguration  
override AddEntitySet : 
        name:string * 
        entityType:EntityTypeConfiguration -> EntitySetConfiguration
public override function AddEntitySet(
    name : String, 
    entityType : EntityTypeConfiguration
) : EntitySetConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.EntitySetConfiguration
The configuration object for the specified entity set.

See Also

Reference

ODataConventionModelBuilder Class

System.Web.Http.OData.Builder Namespace