/// <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 DeleteRef([FromODataUri] TKey key, string relatedKey, string navigationProperty) { throw EntitySetControllerHelpers.DeleteRefNotImplementedResponse(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="reference">The URI of the entity to remove from the navigation property.</param> public virtual void DeleteRef([FromODataUri] TKey key, string navigationProperty, [FromBody] Uri reference) { throw EntitySetControllerHelpers.DeleteRefNotImplementedResponse(Request, navigationProperty); }