Skip to content

Pact Web Vue Grid Controllers BaseCRUDController TDatabaseDTO TGridRowDTO TEditDTO GetGridDataSet(int int string int string System Linq Expressions Expression System Func TDatabaseDTO bool )

welshronaldo edited this page May 30, 2022 · 5 revisions

BaseCRUDController<TDatabaseDTO,TGridRowDTO,TEditDTO>.GetGridDataSet(int, int, string, int, string, Expression<Func<TDatabaseDTO,bool>>) Method

Gets a generic grid data set

protected System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.JsonResult> GetGridDataSet(int page, int size, string order, int direction, string filter, System.Linq.Expressions.Expression<System.Func<TDatabaseDTO,bool>> whereClause=null);

Parameters

page System.Int32
page of data to return

size System.Int32
size of paged data set

order System.String
column to order data set by

direction System.Int32
order of sort 'ASC' or 'DESC'

filter System.String
generic text filter applied to source data set

whereClause System.Linq.Expressions.Expression<System.Func<TDatabaseDTO,System.Boolean>>
extra sql where clause

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.JsonResult>

Clone this wiki locally