/// <summary> /// This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities. /// </summary> /// <param name="key">The key of the entity with the navigation property.</param> /// <param name="relatedKey">The key of the related entity.</param> /// <param name="navigationProperty">The name of the navigation property.</param> /// <returns>A <see cref="Task"/> that completes when the link has been successfully deleted.</returns> public virtual Task DeleteLink([FromODataUri] TKey key, string relatedKey, string navigationProperty) { throw EntitySetControllerHelpers.DeleteLinkNotImplementedResponse(Request, navigationProperty); }
/// <summary> /// This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities. /// </summary> /// <param name="key">The key of the entity with the navigation property.</param> /// <param name="navigationProperty">The name of the navigation property.</param> /// <param name="link">The URI of the entity to remove from the navigation property.</param> public virtual void DeleteLink([FromODataUri] TKey key, string navigationProperty, [FromBody] Uri link) { throw EntitySetControllerHelpers.DeleteLinkNotImplementedResponse(Request, navigationProperty); }