EdmEntityContainer.AddEntitySet Method
Creates and adds an entity set to this entity container.
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Overridable Function AddEntitySet ( _
name As String, _
elementType As IEdmEntityType _
) As EdmEntitySet
'Usage
Dim instance As EdmEntityContainer
Dim name As String
Dim elementType As IEdmEntityType
Dim returnValue As EdmEntitySet
returnValue = instance.AddEntitySet(name, _
elementType)
public virtual EdmEntitySet AddEntitySet(
string name,
IEdmEntityType elementType
)
public:
virtual EdmEntitySet^ AddEntitySet(
String^ name,
IEdmEntityType^ elementType
)
abstract AddEntitySet :
name:string *
elementType:IEdmEntityType -> EdmEntitySet
override AddEntitySet :
name:string *
elementType:IEdmEntityType -> EdmEntitySet
public function AddEntitySet(
name : String,
elementType : IEdmEntityType
) : EdmEntitySet
Parameters
- name
Type: System.String
The name of the entity set.
- elementType
Type: Microsoft.Data.Edm.IEdmEntityType
The entity type of the elements in this entity set.
Return Value
Type: Microsoft.Data.Edm.Library.EdmEntitySet
The created entity set.