/// <summary> /// Generates the conventional edit link for the given named stream: http://serviceRoot/SetName(keyValues)/StreamName /// </summary> /// <param name="entitySet">The entity set of the entity</param> /// <param name="entityType">The type of the entity</param> /// <param name="keyValues">They values of the entity's key</param> /// <param name="streamName">The stream's name</param> /// <returns>The convention-based stream edit link</returns> public string GenerateNamedStreamEditLink(EntitySet entitySet, EntityType entityType, IEnumerable <NamedValue> keyValues, string streamName) { // null checks performed by this helper var uri = this.GenerateEntityEditLinkUri(entitySet, entityType, keyValues); // null checks performed by ODataUriBuilder uri.Segments.Add(ODataUriBuilder.NamedStream(entityType, streamName)); return(this.UriToStringConverter.ConvertToString(uri)); }