We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94dda8f commit 063a1caCopy full SHA for 063a1ca
README.md
@@ -38,6 +38,22 @@ public class Startup
38
> How to use in a controller
39
40
```csharp
41
+
42
+[HttpGet]
43
+public IQueryExecutionResult Get(
44
+ [FromServices]YourContext context,
45
+ [FromServices]IQueryHandler handler,
46
+ [FromServices]IQueryCriteria criteria,
47
+ int? page = null,
48
+ int? pageSize = null)
49
+{
50
+ criteria.Page = page;
51
+ criteria.PageSize = pageSize;
52
+ IQueryable<OfSomething> query = context.Somethings;
53
+ var result = handler.Execute(query, criteria);
54
+ return result;
55
+}
56
57
[HttpPost]
58
public IQueryExecutionResult Read(
59
[FromServices]YourContext context,
0 commit comments