Skip to content

Core Data Tools, for searching pagination and filtering in LINQ/EF.

Notifications You must be signed in to change notification settings

ThoriumStack/core-datatools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core-datatools

Core Data Tools, for searching pagination and filtering in LINQ/EF.

Data Tools uses dynamic Linq to allow dynamic queries to be executed via the SearchParameters object.

Example

var parms = new SearchParameters
            {
                PageSize = 10,
                PageIndex = 0,
                SortOrder = SortOrder.Descending,
                SortFieldName ="Firstname",
                FilterExpression = "Lastname == @0",
                FilterParameters = new []{"Jefferson"}
                
            };
var query = context.People;

var result = parms.Apply<MyPeopleDto, MyPeopleEntity>(query);

The result will be a paginated list with a total, the items and the total number of pages. This library is useful in conjunction with the Javascript Filter Expression Builder

About

Core Data Tools, for searching pagination and filtering in LINQ/EF.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages