示例#1
0
 public static SearchFilter SubQueryCondition(ResourceId resource, string fieldName, string operatorText)
 {
     return(new SearchFilter
     {
         Field = new SearchField($"{resource}.{fieldName}"),
         SearchType = SearchRequestComposer.SearchTypeMap[SearchFilterType.Subquery],
         Operator = SearchRequestComposer.OperatorTypeMap[OperatorType.In],
         Value = SearchValue.CreateSubquery(resource, $"{resource}.P_Id", SearchFilter.CreateText($"{resource}.{fieldName}", operatorText, "Test", null))
     });
 }
示例#2
0
 public SearchRequest TextFilter(string fieldName, OperatorType op, string lang, string value)
 {
     _request.Conditions.Filter = SearchFilter.CreateText(fieldName, OperatorTypeMap[op], value, lang);
     return(_request);
 }