Jaa


ODataModelBuilder.AddEntitySet(String, EntityTypeConfiguration) Method

Definition

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.

public virtual Microsoft.AspNet.OData.Builder.EntitySetConfiguration AddEntitySet (string name, Microsoft.AspNet.OData.Builder.EntityTypeConfiguration entityType);
abstract member AddEntitySet : string * Microsoft.AspNet.OData.Builder.EntityTypeConfiguration -> Microsoft.AspNet.OData.Builder.EntitySetConfiguration
override this.AddEntitySet : string * Microsoft.AspNet.OData.Builder.EntityTypeConfiguration -> Microsoft.AspNet.OData.Builder.EntitySetConfiguration
Public Overridable Function AddEntitySet (name As String, entityType As EntityTypeConfiguration) As EntitySetConfiguration

Parameters

name
String

The name of the entity set.

entityType
EntityTypeConfiguration

The type to be registered or configured.

Returns

The configuration object for the specified entity set.

Applies to