Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork45
AutoFilterer is a mini filtering framework library for dotnet. The main purpose of the library is to generate LINQ expressions for Entities over DTOs automatically. The first aim is to be compatible with Open API 3.0 Specifications
License
enisn/AutoFilterer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
AutoFilterer is a mini filtering framework library for dotnet.The main purpose of the library is to generate LINQ expressions for Entities over DTOs automatically. Creating queries without writing any expression code is the most powerful feature that is provided. The first aim of AutoFilterer is to be compatible with Open API 3.0 Specifications, unlike oData & GraphQL.
You can checkDocumentation for getting started. |
- Install
AutoFiltererNuGet package fromhere.
Vsitvisit documentation to learn how to use AutoFilterer.
A quick example is presented below. Readingdocumentation is highly recommended for detailed features.
- Create a filter model and make sure property names match to Entity properties.
publicclassProductFilter:PaginationFilterBase{publicRange<double>Price{get;set;}[ToLowerContainsComparison]publicstringName{get;set;}[StringFilteringOptions(StringFilterOption.Equals)]publicstringLocale{get;set;}}
publicIActionResultGetProducts([FromQuery]ProductFilterfilter){varproducts=db.Products.ApplyFilter(filter).ToList();returnOk(products);}
Don't forget tovisit Wiki for better understanding of usage.
All parameters support OpenAPI 3.0 Specifications 👍
Improve your swagger documentation via usingAutoFilterer.Swagger
AutoFilterer.Generators aims to generate filter objects from entities automatically via usingdotnet source generators.
Visitdocumentation of Generators
See Benchmark Results fromhere
About
AutoFilterer is a mini filtering framework library for dotnet. The main purpose of the library is to generate LINQ expressions for Entities over DTOs automatically. The first aim is to be compatible with Open API 3.0 Specifications
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.