Jaa


EdmEntityContainer.AddEntitySet Method

Definition

Overloads

AddEntitySet(String, IEdmEntityType)

Creates and adds an entity set to this entity container.

AddEntitySet(String, IEdmEntityType, Boolean)

Creates and adds an entity set to this entity container.

AddEntitySet(String, IEdmEntityType)

Creates and adds an entity set to this entity container.

public virtual Microsoft.OData.Edm.EdmEntitySet AddEntitySet (string name, Microsoft.OData.Edm.IEdmEntityType elementType);
abstract member AddEntitySet : string * Microsoft.OData.Edm.IEdmEntityType -> Microsoft.OData.Edm.EdmEntitySet
override this.AddEntitySet : string * Microsoft.OData.Edm.IEdmEntityType -> Microsoft.OData.Edm.EdmEntitySet
Public Overridable Function AddEntitySet (name As String, elementType As IEdmEntityType) As EdmEntitySet

Parameters

name
String

Name of the entity set.

elementType
IEdmEntityType

The entity type of the elements in this entity set.

Returns

Created entity set.

Applies to

AddEntitySet(String, IEdmEntityType, Boolean)

Creates and adds an entity set to this entity container.

public virtual Microsoft.OData.Edm.EdmEntitySet AddEntitySet (string name, Microsoft.OData.Edm.IEdmEntityType elementType, bool includeInServiceDocument);
abstract member AddEntitySet : string * Microsoft.OData.Edm.IEdmEntityType * bool -> Microsoft.OData.Edm.EdmEntitySet
override this.AddEntitySet : string * Microsoft.OData.Edm.IEdmEntityType * bool -> Microsoft.OData.Edm.EdmEntitySet
Public Overridable Function AddEntitySet (name As String, elementType As IEdmEntityType, includeInServiceDocument As Boolean) As EdmEntitySet

Parameters

name
String

Name of the entity set.

elementType
IEdmEntityType

The entity type of the elements in this entity set.

includeInServiceDocument
Boolean

Indicates whether the entity set is advertised in the service document.

Returns

Created entity set.

Applies to