public SearchQuery(DsfFindRecordsMultipleCriteriaActivity activity, string Result, bool RequireAllFieldsToMatch, bool RequireAllTrue) { this.activity = activity; this.Result = Result; this.RequireAllFieldsToMatch = RequireAllFieldsToMatch; this.RequireAllTrue = RequireAllTrue; }
public SearchContext(DsfFindRecordsMultipleCriteriaActivity activity) { this.activity = activity; ToSearch = activity.FieldsToSearch.Split(',') .Select(a => a.Trim()) .ToList(); }
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); }