Skip to content

3. Fop Expression Builder

Aybars edited this page Sep 2, 2019 · 2 revisions

FopExpressionBuilder πŸ™

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

Fop Supported Operators ❗

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 !|= ❌ βœ”οΈ ❌ ❌