Skip to content

Commit 0b3946b

Browse files
authored
Update README.md
1 parent ceae36e commit 0b3946b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -367,24 +367,24 @@ also if you store a compiled expression you get a massive performance boost.
367367
**Important note**: you should only use a **compiled** expression if you are **not** using Gridify alongside an ORM like Entity-Framework.
368368

369369
```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);
388388

389389
```
390390

0 commit comments

Comments
 (0)