EntitySetController<TEntity, TKey>.DeleteLink Method
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
DeleteLink(TKey, String, String) | This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities. |
|
DeleteLink(TKey, String, Uri) | This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities. |
See Also
EntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top
EntitySetController<TEntity, TKey>.DeleteLink Method (TKey, String, String)
This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities.
Syntax
public virtual void DeleteLink(
TKey key,
string relatedKey,
string navigationProperty
)
public:
virtual void DeleteLink(
TKey key,
String^ relatedKey,
String^ navigationProperty
)
abstract DeleteLink :
key:'TKey *
relatedKey:string *
navigationProperty:string -> unit
override DeleteLink :
key:'TKey *
relatedKey:string *
navigationProperty:string -> unit
Public Overridable Sub DeleteLink (
key As TKey,
relatedKey As String,
navigationProperty As String
)
Parameters
key
Type: TKeyThe key of the entity with the navigation property.
relatedKey
Type: System.StringThe key of the related entity.
navigationProperty
Type: System.StringThe name of the navigation property.
Return to top
EntitySetController<TEntity, TKey>.DeleteLink Method (TKey, String, Uri)
This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities.
Syntax
public virtual void DeleteLink(
TKey key,
string navigationProperty,
Uri link
)
public:
virtual void DeleteLink(
TKey key,
String^ navigationProperty,
Uri^ link
)
abstract DeleteLink :
key:'TKey *
navigationProperty:string *
link:Uri -> unit
override DeleteLink :
key:'TKey *
navigationProperty:string *
link:Uri -> unit
Public Overridable Sub DeleteLink (
key As TKey,
navigationProperty As String,
link As Uri
)
Parameters
key
Type: TKeyThe key of the entity with the navigation property.
navigationProperty
Type: System.StringThe name of the navigation property.
link
Type: System.UriThe URI of the entity to remove from the navigation property.
Return to top