-
Notifications
You must be signed in to change notification settings - Fork 14
3. Fop Expression Builder
Aybars edited this page Sep 2, 2019
·
2 revisions
The class helps us to generate IFopRequest from to string.
So as you guess we need a query logic for FopExpressionBuilder and they both must speak the same language.
FopExpressionBuilder has one public method for your usage and it's Build method. The methods accept 4 parameters.
They are string filter, string order, int pageNumber, int pageSize
IFopRequest Build(string filter, string order, int pageNumber, int pageSize)
Fop uses these query sign for preparing expression. We must know it for writing string queries β
Operators | Query Sign | Int | String | Char | DateTime |
---|---|---|---|---|---|
Equal | == |
βοΈ | βοΈ | βοΈ | βοΈ |
NotEqual | != |
βοΈ | βοΈ | βοΈ | βοΈ |
GreaterThan | > |
βοΈ | β | β | βοΈ |
GreaterOrEqualThan | >= |
βοΈ | β | β | βοΈ |
LessThan | < |
βοΈ | β | β | βοΈ |
LessOrEqualThan | <= |
βοΈ | β | β | βοΈ |
Contains | ~= |
β | βοΈ | β | β |
NotContains | !~= |
β | βοΈ | β | β |
StartsWith | _= |
β | βοΈ | β | β |
NotStartsWith | !_= |
β | βοΈ | β | β |
EndsWith | |= |
β | βοΈ | β | β |
NotEndsWith | !|= |
β | βοΈ | β | β |