-
Notifications
You must be signed in to change notification settings - Fork 14
2. How to use Fop?
Aybars edited this page Sep 2, 2019
·
1 revision
- Install
Fop
NuGet package from here. 🚀
PM> Install-Package Fop
- Then use ApplyFop(IFopRequest) 🚀
var result = _context.Students.ApplyFop(request);
Actually that's all.
But fop have one more extension to create IFopRequest from string text, see next.
- FopExpressionBuilder.Build() returns us IFopRequest! 🚀
var fopRequest = FopExpressionBuilder<T>.Build(request.Filter, request.Order, request.PageNumber, request.PageSize);
now we can use fopRequest as ApplyFop(fopRequest) parameter