Share via


ODataModelBuilder.RemoveEntitySet Method

Removes the entity set from the model.

Namespace:  System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Overridable Function RemoveEntitySet ( _
    name As String _
) As Boolean
'Usage
Dim instance As ODataModelBuilder 
Dim name As String 
Dim returnValue As Boolean 

returnValue = instance.RemoveEntitySet(name)
public virtual bool RemoveEntitySet(
    string name
)
public:
virtual bool RemoveEntitySet(
    String^ name
)
abstract RemoveEntitySet : 
        name:string -> bool  
override RemoveEntitySet : 
        name:string -> bool
public function RemoveEntitySet(
    name : String
) : boolean

Parameters

  • name
    Type: System.String
    The name of the entity set to be removed.

Return Value

Type: System.Boolean
true if the entity set is present in the model; false otherwise.

See Also

Reference

ODataModelBuilder Class

System.Web.Http.OData.Builder Namespace