Skip to content

Commit

Permalink
Merge pull request #19 from Kusumoto/feature/version2
Browse files Browse the repository at this point in the history
Release version 2.0
  • Loading branch information
Kusumoto authored May 2, 2021
2 parents 2cce3f1 + a0e1d41 commit 32db112
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

Helper for use the PrimeNG table load lazy filter in backend use LINQ to Entity

## Breaking change in version 2.0
If you use PrimeNG.TableFilter version 1.x.x you will need to migrate your implementation code. Please delete total record variable and change to get total record from variable out in extension. You can looking for implementation guide line in unit test.

## .Net Platform Support

- .Net Standard 2.0
Expand All @@ -17,6 +20,10 @@ Helper for use the PrimeNG table load lazy filter in backend use LINQ to Entity
- Filter criteria from PrimeNG table filter in Iterators and Entities
- Convert PrimeNG table filter payload to SQL Query (use LINQ to Entities)

## Release Note
[Completely handle PrimeNG table load lazy in ASP.NET use PrimeNG.TableFilter (kusumotolab.com)](https://kusumotolab.com/completely-handle-primeng-table-load-lazy-in-asp-net-use-primeng-tablefilter/)


## Install via Nuget Package Manager

```sh
Expand All @@ -39,7 +46,6 @@ PM> Install-Package PrimeNG.TableFilter
```C#
public BaseTableResponseEntity<ClassRoomGridModel> GetClassRoom(TableFilterModel filterPayload)
{
var totalRecord = 0; // for summary all record before pagination
var result = _classRoomRepository.Gets()
.Select(o =>
new ClassRoomGridModel
Expand All @@ -54,7 +60,7 @@ public BaseTableResponseEntity<ClassRoomGridModel> GetClassRoom(TableFilterModel
Type = GenerateClassRoomTypeToText(o.Type)
}
);
result = result.PrimengTableFilter(filterPayload, ref totalRecord);
result = result.PrimengTableFilter(filterPayload, out var totalRecord);
return MvcHelper.ResponseTableData(totalRecord, result);
}
```
Expand Down

0 comments on commit 32db112

Please sign in to comment.