Example #1
0
        /// <summary>
        /// Check if this segment is equal to another segment.
        /// </summary>
        /// <param name="other">the other segment to check.</param>
        /// <returns>true if the other segment is equal.</returns>
        /// <exception cref="System.ArgumentNullException">Throws if the input other is null.</exception>
        internal override bool Equals(ODataPathSegment other)
        {
            DebugUtils.CheckNoExternalCallers();
            ExceptionUtils.CheckArgumentNotNull(other, "other");
            OperationSegment otherOperation = other as OperationSegment;

            return(otherOperation != null &&
                   otherOperation.Operations.SequenceEqual(this.Operations) &&
                   otherOperation.EntitySet == this.entitySet);
        }
Example #2
0
 /// <summary>
 /// Translate a OperationSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(OperationSegment segment)
 {
     throw new NotImplementedException();
 }
Example #3
0
 /// <summary>
 /// Handle an OperationSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(OperationSegment segment)
 {
     throw new NotImplementedException();
 }
Example #4
0
 /// <summary>
 /// Determine the EntitySet of an OperationSegment
 /// </summary>
 /// <param name="segment">The OperationSegment to look in.</param>
 /// <returns>The IEdmEntitySet of this OperationSegment</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmEntitySet Translate(OperationSegment segment)
 {
     DebugUtils.CheckNoExternalCallers();
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(segment.EntitySet);
 }