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