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.OData.Builder
Assembly: System.Web.OData (in System.Web.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.OData.Builder.EntityTypeConfigurationThe type to be registered or configured.
Return Value
Type: System.Web.OData.Builder.EntitySetConfiguration
The configuration object for the specified entity set.
See Also
ODataModelBuilder Class
System.Web.OData.Builder Namespace
Return to top