EdmEntityContainer.AddEntitySet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.