Ejemplo n.º 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>
        internal override bool Equals(ODataPathSegment other)
        {
            DebugUtils.CheckNoExternalCallers();
            BatchReferenceSegment otherBatchReferenceSegment = other as BatchReferenceSegment;

            return(otherBatchReferenceSegment != null &&
                   otherBatchReferenceSegment.EdmType == this.edmType &&
                   otherBatchReferenceSegment.EntitySet == this.entitySet &&
                   otherBatchReferenceSegment.ContentId == this.contentId);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Translate a BatchReferenceSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(BatchReferenceSegment segment)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Handle a BatchReferenceSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(BatchReferenceSegment segment)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Determine the EntitySet of a BatchReferenceSegment
 /// </summary>
 /// <param name="segment">The BatchReferenceSegment to look in.</param>
 /// <returns>The IEdmEntitySet of this BatchReferenceSegment</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmEntitySet Translate(BatchReferenceSegment segment)
 {
     DebugUtils.CheckNoExternalCallers();
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(segment.EntitySet);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Translate a BatchReferenceSegment
 /// </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(BatchReferenceSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(false);
 }