@@ -21,13 +21,13 @@ public class ScalarFilter : SearchFilter
21
21
{
22
22
public object Value { get ; set ; }
23
23
24
- public static SearchFilter Equals ( Expression < Func < WorkflowSearchResult , object > > property , object value ) => new ScalarFilter ( )
24
+ public static SearchFilter Equals ( Expression < Func < WorkflowSearchResult , object > > property , object value ) => new ScalarFilter
25
25
{
26
26
Property = property ,
27
27
Value = value
28
28
} ;
29
29
30
- public static SearchFilter Equals < T > ( Expression < Func < T , object > > property , object value ) => new ScalarFilter ( )
30
+ public static SearchFilter Equals < T > ( Expression < Func < T , object > > property , object value ) => new ScalarFilter
31
31
{
32
32
IsData = true ,
33
33
DataType = typeof ( T ) ,
@@ -41,42 +41,42 @@ public class DateRangeFilter : SearchFilter
41
41
public DateTime ? BeforeValue { get ; set ; }
42
42
public DateTime ? AfterValue { get ; set ; }
43
43
44
- public static DateRangeFilter Before ( Expression < Func < WorkflowSearchResult , object > > property , DateTime value ) => new DateRangeFilter ( )
44
+ public static DateRangeFilter Before ( Expression < Func < WorkflowSearchResult , object > > property , DateTime value ) => new DateRangeFilter
45
45
{
46
46
Property = property ,
47
47
BeforeValue = value
48
48
} ;
49
49
50
- public static DateRangeFilter After ( Expression < Func < WorkflowSearchResult , object > > property , DateTime value ) => new DateRangeFilter ( )
50
+ public static DateRangeFilter After ( Expression < Func < WorkflowSearchResult , object > > property , DateTime value ) => new DateRangeFilter
51
51
{
52
52
Property = property ,
53
53
AfterValue = value
54
54
} ;
55
55
56
- public static DateRangeFilter Between ( Expression < Func < WorkflowSearchResult , object > > property , DateTime start , DateTime end ) => new DateRangeFilter ( )
56
+ public static DateRangeFilter Between ( Expression < Func < WorkflowSearchResult , object > > property , DateTime start , DateTime end ) => new DateRangeFilter
57
57
{
58
58
Property = property ,
59
59
BeforeValue = end ,
60
60
AfterValue = start
61
61
} ;
62
62
63
- public static DateRangeFilter Before < T > ( Expression < Func < T , object > > property , DateTime value ) => new DateRangeFilter ( )
63
+ public static DateRangeFilter Before < T > ( Expression < Func < T , object > > property , DateTime value ) => new DateRangeFilter
64
64
{
65
65
IsData = true ,
66
66
DataType = typeof ( T ) ,
67
67
Property = property ,
68
68
BeforeValue = value
69
69
} ;
70
70
71
- public static DateRangeFilter After < T > ( Expression < Func < T , object > > property , DateTime value ) => new DateRangeFilter ( )
71
+ public static DateRangeFilter After < T > ( Expression < Func < T , object > > property , DateTime value ) => new DateRangeFilter
72
72
{
73
73
IsData = true ,
74
74
DataType = typeof ( T ) ,
75
75
Property = property ,
76
76
AfterValue = value
77
77
} ;
78
78
79
- public static DateRangeFilter Between < T > ( Expression < Func < T , object > > property , DateTime start , DateTime end ) => new DateRangeFilter ( )
79
+ public static DateRangeFilter Between < T > ( Expression < Func < T , object > > property , DateTime start , DateTime end ) => new DateRangeFilter
80
80
{
81
81
IsData = true ,
82
82
DataType = typeof ( T ) ,
@@ -91,42 +91,42 @@ public class NumericRangeFilter : SearchFilter
91
91
public double ? LessValue { get ; set ; }
92
92
public double ? GreaterValue { get ; set ; }
93
93
94
- public static NumericRangeFilter LessThan ( Expression < Func < WorkflowSearchResult , object > > property , double value ) => new NumericRangeFilter ( )
94
+ public static NumericRangeFilter LessThan ( Expression < Func < WorkflowSearchResult , object > > property , double value ) => new NumericRangeFilter
95
95
{
96
96
Property = property ,
97
97
LessValue = value
98
98
} ;
99
99
100
- public static NumericRangeFilter GreaterThan ( Expression < Func < WorkflowSearchResult , object > > property , double value ) => new NumericRangeFilter ( )
100
+ public static NumericRangeFilter GreaterThan ( Expression < Func < WorkflowSearchResult , object > > property , double value ) => new NumericRangeFilter
101
101
{
102
102
Property = property ,
103
103
GreaterValue = value
104
104
} ;
105
105
106
- public static NumericRangeFilter Between ( Expression < Func < WorkflowSearchResult , object > > property , double start , double end ) => new NumericRangeFilter ( )
106
+ public static NumericRangeFilter Between ( Expression < Func < WorkflowSearchResult , object > > property , double start , double end ) => new NumericRangeFilter
107
107
{
108
108
Property = property ,
109
109
LessValue = end ,
110
110
GreaterValue = start
111
111
} ;
112
112
113
- public static NumericRangeFilter LessThan < T > ( Expression < Func < T , object > > property , double value ) => new NumericRangeFilter ( )
113
+ public static NumericRangeFilter LessThan < T > ( Expression < Func < T , object > > property , double value ) => new NumericRangeFilter
114
114
{
115
115
IsData = true ,
116
116
DataType = typeof ( T ) ,
117
117
Property = property ,
118
118
LessValue = value
119
119
} ;
120
120
121
- public static NumericRangeFilter GreaterThan < T > ( Expression < Func < T , object > > property , double value ) => new NumericRangeFilter ( )
121
+ public static NumericRangeFilter GreaterThan < T > ( Expression < Func < T , object > > property , double value ) => new NumericRangeFilter
122
122
{
123
123
IsData = true ,
124
124
DataType = typeof ( T ) ,
125
125
Property = property ,
126
126
GreaterValue = value
127
127
} ;
128
128
129
- public static NumericRangeFilter Between < T > ( Expression < Func < T , object > > property , double start , double end ) => new NumericRangeFilter ( )
129
+ public static NumericRangeFilter Between < T > ( Expression < Func < T , object > > property , double start , double end ) => new NumericRangeFilter
130
130
{
131
131
IsData = true ,
132
132
DataType = typeof ( T ) ,
@@ -144,7 +144,7 @@ protected StatusFilter()
144
144
Property = lambda ;
145
145
}
146
146
147
- public static StatusFilter Equals ( WorkflowStatus value ) => new StatusFilter ( )
147
+ public static StatusFilter Equals ( WorkflowStatus value ) => new StatusFilter
148
148
{
149
149
Value = value . ToString ( )
150
150
} ;
0 commit comments