コード例 #1
0
 /// <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());
 }
コード例 #2
0
 /// <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);
 }