Exemple #1
0
 public SearchQuery(DsfFindRecordsMultipleCriteriaActivity activity, string Result, bool RequireAllFieldsToMatch, bool RequireAllTrue)
 {
     this.activity = activity;
     this.Result   = Result;
     this.RequireAllFieldsToMatch = RequireAllFieldsToMatch;
     this.RequireAllTrue          = RequireAllTrue;
 }
Exemple #2
0
 public SearchContext(DsfFindRecordsMultipleCriteriaActivity activity)
 {
     this.activity = activity;
     ToSearch      = activity.FieldsToSearch.Split(',')
                     .Select(a => a.Trim())
                     .ToList();
 }
Exemple #3
0
        public bool Equals(DsfFindRecordsMultipleCriteriaActivity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            var resultsCollectionsAreEqual = CommonEqualityOps.CollectionEquals(ResultsCollection, other.ResultsCollection, new FindRecordsTOComparer());

            return(base.Equals(other) &&
                   string.Equals(FieldsToSearch, other.FieldsToSearch) &&
                   string.Equals(Result, other.Result) &&
                   string.Equals(StartIndex, other.StartIndex) &&
                   MatchCase == other.MatchCase &&
                   RequireAllTrue == other.RequireAllTrue &&
                   RequireAllFieldsToMatch == other.RequireAllFieldsToMatch &&
                   resultsCollectionsAreEqual);
        }