Share via


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

Return Value

Type: Microsoft.Data.Edm.Library.EdmEntitySet
The created entity set.

See Also

Reference

EdmEntityContainer Class

Microsoft.Data.Edm.Library Namespace