示例#1
0
文件: IndexQuery.cs 项目: mow/ravendb
 public bool Equals(IndexQuery other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(PageSizeSet.Equals(other.PageSizeSet) &&
            String.Equals(Query, other.Query) &&
            Equals(TotalSize, other.TotalSize) &&
            Equals(TransformerParameters, other.TransformerParameters) &&
            Start == other.Start &&
            Equals(IsDistinct, other.IsDistinct) &&
            Equals(FieldsToFetch, other.FieldsToFetch) &&
            Equals(SortedFields, other.SortedFields) &&
            Equals(SortHints, other.SortHints) &&
            Cutoff.Equals(other.Cutoff) &&
            WaitForNonStaleResultsAsOfNow.Equals(other.WaitForNonStaleResultsAsOfNow) &&
            WaitForNonStaleResults.Equals(other.WaitForNonStaleResults) &&
            Equals(CutoffEtag, other.CutoffEtag) &&
            String.Equals(DefaultField, other.DefaultField) &&
            DefaultOperator == other.DefaultOperator &&
            Equals(SkippedResults, other.SkippedResults) &&
            DebugOptionGetIndexEntries.Equals(other.DebugOptionGetIndexEntries) &&
            Equals(HighlightedFields, other.HighlightedFields) &&
            Equals(HighlighterPreTags, other.HighlighterPreTags) &&
            Equals(HighlighterPostTags, other.HighlighterPostTags) &&
            Equals(HighlighterKeyName, other.HighlighterKeyName) &&
            String.Equals(ResultsTransformer, other.ResultsTransformer) &&
            ShowTimings == other.ShowTimings &&
            DisableCaching.Equals(other.DisableCaching));
 }
示例#2
0
        public virtual bool Equals(IndexQueryBase other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(PageSizeSet.Equals(other.PageSizeSet) &&
                   string.Equals(Query, other.Query) &&
                   Start == other.Start &&
                   IsDistinct == other.IsDistinct &&
                   EnumerableExtension.ContentEquals(FieldsToFetch, other.FieldsToFetch) &&
                   WaitForNonStaleResultsTimeout == other.WaitForNonStaleResultsTimeout &&
                   WaitForNonStaleResultsAsOfNow.Equals(other.WaitForNonStaleResultsAsOfNow) &&
                   WaitForNonStaleResults.Equals(other.WaitForNonStaleResults) &&
                   Equals(CutoffEtag, other.CutoffEtag) &&
                   string.Equals(DefaultField, other.DefaultField) &&
                   DefaultOperator == other.DefaultOperator);
        }