ODataModelBuilder.AddEntitySet Method (String, EntityTypeConfiguration)
Registers an entity set as a part of the model and returns an object that can be used to configure the entity set. This method can be called multiple times for the same type to perform multiple lines of configuration.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual EntitySetConfiguration AddEntitySet(
string name,
EntityTypeConfiguration entityType
)
public:
virtual EntitySetConfiguration^ AddEntitySet(
String^ name,
EntityTypeConfiguration^ entityType
)
abstract AddEntitySet :
name:string *
entityType:EntityTypeConfiguration -> EntitySetConfiguration
override AddEntitySet :
name:string *
entityType:EntityTypeConfiguration -> EntitySetConfiguration
Public Overridable Function AddEntitySet (
name As String,
entityType As EntityTypeConfiguration
) As EntitySetConfiguration
Parameters
name
Type: System.StringThe name of the entity set.
entityType
Type: System.Web.Http.OData.Builder.EntityTypeConfigurationThe type to be registered or configured.
Return Value
Type: System.Web.Http.OData.Builder.EntitySetConfiguration
The configuration object for the specified entity set.
See Also
ODataModelBuilder Class
System.Web.Http.OData.Builder Namespace
Return to top