Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naeemaei/aggriddynamicfilter
Angular AgGrid to C# dynamic linq expression
https://github.com/naeemaei/aggriddynamicfilter
aggrid angular asp-net-core csharp dynamic-filters filter
Last synced: 8 days ago
JSON representation
Angular AgGrid to C# dynamic linq expression
- Host: GitHub
- URL: https://github.com/naeemaei/aggriddynamicfilter
- Owner: naeemaei
- Created: 2021-08-31T14:02:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T11:20:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T06:10:59.685Z (about 2 months ago)
- Topics: aggrid, angular, asp-net-core, csharp, dynamic-filters, filter
- Language: C#
- Homepage:
- Size: 146 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AgGridDynamicFilter
## Dynamic filter from AgGrid to ASP.NET Core web api without any extra codes
Just need to pass DB model class and filter to generate expression function then pass expression to linq `Where` function## Usage
```
public static IEnumerable GetAndFilterAndSort(AgGridPaginationFilterModel filter) // Filter fill in frontend
{
var expression = AgGridDynamicFilter.Extensions.GetExpression(filter);return olympicWinners.Where(expression).DynamicOrderBy(filter);
}```