@@ -367,24 +367,24 @@ also if you store a compiled expression you get a massive performance boost.
367
367
** Important note ** : you should only use a ** compiled ** expression if you are ** not ** using Gridify alongside an ORM like Entity - Framework .
368
368
369
369
```c #
370
- // eg.1 - using GridifyQuery - Compield - where only ------------------
371
- var gq = new GridifyQuery () { Filter = " name=John" };
372
- var expression = gq .GetFilteringExpression <Person >();
373
- var compiledExpression = expression .Compile ();
374
- var result = persons .Where (compiledExpression );
375
-
376
- // eg.2 - using QueryBuilder - Compield - where only ------------------
377
- var compiledExpression = new QueryBuilder <Person >()
378
- .AddCondition (" name=John" )
379
- .BuildFilteringExpression ()
380
- .Compile ();
381
- var result = persons .Where (compiledExpression );
382
-
383
- // eg.3 - using QueryBuilder - BuildCompiled -------------------------
384
- var func = new QueryBuilder <Person >()
385
- .AddCondition (" name=John" )
386
- .BuildCompiled ();
387
- var result = func (persons );
370
+ // eg.1 - using GridifyQuery - Compield - where only ---- ------------------
371
+ var gq = new GridifyQuery () { Filter = " name=John" };
372
+ var expression = gq .GetFilteringExpression <Person >();
373
+ var compiledExpression = expression .Compile ();
374
+ var result = persons .Where (compiledExpression );
375
+
376
+ // eg.2 - using QueryBuilder - Compield - where only ---- ------------------
377
+ var compiledExpression = new QueryBuilder <Person >()
378
+ .AddCondition (" name=John" )
379
+ .BuildFilteringExpression ()
380
+ .Compile ();
381
+ var result = persons .Where (compiledExpression );
382
+
383
+ // eg.3 - using QueryBuilder - BuildCompiled ----- -------------------------
384
+ var func = new QueryBuilder <Person >()
385
+ .AddCondition (" name=John" )
386
+ .BuildCompiled ();
387
+ var result = func (persons );
388
388
389
389
```
390
390
0 commit comments