ODataModelBuilder.EntitySet<TEntityType> Method
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
'Declaration
Public Function EntitySet(Of TEntityType As Class) ( _
name As String _
) As EntitySetConfiguration(Of TEntityType)
'Usage
Dim instance As ODataModelBuilder
Dim name As String
Dim returnValue As EntitySetConfiguration(Of TEntityType)
returnValue = instance.EntitySet(name)
public EntitySetConfiguration<TEntityType> EntitySet<TEntityType>(
string name
)
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
EntitySetConfiguration<TEntityType>^ EntitySet(
String^ name
)
member EntitySet :
name:string -> EntitySetConfiguration<'TEntityType> when 'TEntityType : not struct
JScript does not support generic types and methods.
Type Parameters
- TEntityType
The entity type of the entity set.
Parameters
- name
Type: System.String
The name of the entity set.
Return Value
Type: System.Web.Http.OData.Builder.EntitySetConfiguration<TEntityType>
The configuration object for the specified entity set.