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
System_CAPS_pubmethod DeleteLink(TKey, String, String)

This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities.

System_CAPS_pubmethod 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

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: TKey

    The key of the entity with the navigation property.

  • navigationProperty
    Type: System.String

    The name of the navigation property.

Return to top

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: TKey

    The key of the entity with the navigation property.

  • navigationProperty
    Type: System.String

    The name of the navigation property.

  • link
    Type: System.Uri

    The URI of the entity to remove from the navigation property.

Return to top