Update README.md
This commit is contained in:
		
							parent
							
								
									438306203a
								
							
						
					
					
						commit
						94dda8f85d
					
				
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@ -35,6 +35,21 @@ public class Startup
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
> How to use in a controller
 | 
			
		||||
 | 
			
		||||
```csharp
 | 
			
		||||
[HttpPost]
 | 
			
		||||
public IQueryExecutionResult Read(
 | 
			
		||||
    [FromServices]YourContext context, 
 | 
			
		||||
    [FromServices]IQueryHandler handler,
 | 
			
		||||
    [FromBody]IQueryCriteria criteria)
 | 
			
		||||
{
 | 
			
		||||
    IQueryable<OfSomething> query = context.Somethings;
 | 
			
		||||
    var result = handler.Execute(query, criteria);
 | 
			
		||||
    return result;
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Sample Web Project - ASP.NET CORE + EF Core
 | 
			
		||||
 | 
			
		||||
Visit: https://github.com/PoweredSoft/DynamicQueryAspNetCoreSample
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user