Esempio n. 1
0
 public virtual HttpResponseMessage DeleteCollectionLink(TKey id, string navigationProperty, string navigationId)
 {
     throw ODataErrors.DeletingLinkNotSupported(Request, navigationProperty);
 }
Esempio n. 2
0
 /// <summary>
 /// The method handles DELETE requests that attempt to break the "navigationProperty" relationship between
 /// two entities.
 /// </summary>
 /// <param name="id">The key of the entity with the navigationProperty</param>
 /// <param name="navigationProperty">The name of the navigationProperty to be modified</param>
 /// <param name="link">The url of the entity to remove from the navigationProperty.
 /// <remarks>
 /// For singleton navigationProperties this will be NULL because you are simply setting the navigationProperty to null (so you don't need url of the previously related entity).
 /// </remarks>
 /// </param>
 /// <returns>Until overridden this method will respond with 501 Not Implemented</returns>
 public virtual HttpResponseMessage DeleteLink([FromUri] TKey id, string navigationProperty, [FromBody] Uri link)
 {
     throw ODataErrors.DeletingLinkNotSupported(Request, navigationProperty);
 }