/// <summary> /// Translate a BatchSegment /// </summary> /// <param name="segment">the segment to Translate</param> /// <returns>Translated WebApi path segment.</returns> public override IEnumerable <ODataPathSegment> Translate(Semantic.BatchSegment segment) { yield return(new BatchPathSegment()); }
/// <summary> /// Determine the NavigationSource of a BatchSegment /// </summary> /// <param name="segment">The BatchSegment 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(BatchSegment segment) { ExceptionUtils.CheckArgumentNotNull(segment, "segment"); return(null); }