Ejemplo n.º 1
0
 public void UpdateFilterQuery(string filterQuery)
 {
     Debug.Assert(filterQuery != null);
     if (FilterQuery == null)
     {
         FilterQuery = QueryParser.Parse(filterQuery, null);
     }
     else
     {
         Expression filterQueryExpr = QueryParser.Parse(filterQuery, null);
         if (!filterQueryExpr.Equals(FilterQuery) && !filterQueryExpr.Simplified.Equals(FilterQuery.Simplified))
         {
             throw new InvalidDataException($"Repository '{RepoName}' has 2 filter queries defined '{FilterQuery.ToString()}' and '{filterQuery}'");
         }
     }
 }