/// <summary> /// Translate a MetadataSegment /// </summary> /// <param name="segment">the segment to Translate</param> /// <returns>Translated WebApi path segment.</returns> public override IEnumerable <ODataPathSegment> Translate(Semantic.MetadataSegment segment) { yield return(new MetadataPathSegment()); }
/// <summary> /// Determine the NavigationSource of a MetadataSegment /// </summary> /// <param name="segment">The MetadataSegment to look in.</param> /// <returns>null, since $batch doesn't have an navigation source</returns> /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception> public override IEdmNavigationSource Translate(MetadataSegment segment) { ExceptionUtils.CheckArgumentNotNull(segment, "segment"); return(null); }