internal static LogicalSearchExpression Create(
     SearchConfigurationOptions options,
     SearchExpression left,
     SearchExpression right,
     Operator @operator,
     string text)
 {
     return(new LogicalSearchExpression(options, text)
     {
         Left = left,
         Right = right,
         Operator = @operator
     });
 }
示例#2
0
        internal static ContainsSearchExpression Create(
            SearchConfigurationOptions options,
            SearchExpression left,
            SearchExpression right)
        {
            if (left == null)
            {
                throw new ArgumentNullException(nameof(left));
            }

            if (right == null)
            {
                throw new ArgumentNullException(nameof(right));
            }

            return(new ContainsSearchExpression(options, right.Text)
            {
                Left = left,
                Right = right
            });
        }
示例#3
0
 public ContainsSearchExpression(SearchConfigurationOptions options, string text) : base(options, text)
 {
 }
示例#4
0
 internal static SearchExpression Create(SearchConfigurationOptions options, string text)
 {
     return(new SearchExpression(options, text));
 }
示例#5
0
 protected SearchExpression(SearchConfigurationOptions options, string text)
 {
     Options = options;
     Text    = text;
 }
示例#6
0
 public GreaterThanSearchExpression(SearchConfigurationOptions options, string text) : base(options, text)
 {
 }
 protected LogicalSearchExpression(SearchConfigurationOptions options, string text) : base(options, text)
 {
 }
 protected EqualitySearchExpression(SearchConfigurationOptions options, string text) : base(options, text)
 {
 }
示例#9
0
 public static void ConfigureSearch(Action <SearchConfigurationOptions> options = null)
 {
     _currentConfig = new SearchConfigurationOptions();
     options?.Invoke(_currentConfig);
 }
 public LessThanOrEqualSearchExpression(SearchConfigurationOptions options, string text) : base(options, text)
 {
 }