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