/// <summary>
 /// Translate a CountSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>UserDefinedValue</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override bool Translate(CountSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(false);
 }
 /// <summary>
 /// Translate a CountSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(CountSegment segment)
 {
     return(string.Empty);
 }
Exemple #3
0
 /// <summary>
 /// Handle a CountSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(CountSegment segment)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Handle a CountSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public override void Handle(CountSegment segment)
 {
     CommonHandler(segment);
 }
Exemple #5
0
 /// <summary>
 /// Translate a CountSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(CountSegment segment)
 {
     throw new NotImplementedException();
 }
 /// <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);
 }
Exemple #7
0
 /// <summary>
 /// Translate a CountSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(CountSegment segment)
 {
     Debug.Assert(segment != null, "segment != null");
     return("/" + segment.Identifier);
 }