public TableLoadCollection(PageResult <TModel> pageResult, TableService <TModel, TIdentifier> tableService)
 {
     this.pageResult   = pageResult;
     this.tableService = tableService;
     AddPagedResultItems();
 }
Beispiel #2
0
        public static async Task <TableLoadCollection <TModel, TIdentifier> > ToLoadCollection <TModel, TIdentifier>(this TableService <TModel, TIdentifier> tableService, QueryOptions queryOptions = null)
            where TModel : class, IEntity <TIdentifier>
        {
            var pageResult = await tableService.Get(queryOptions);

            var increCol = new TableLoadCollection <TModel, TIdentifier>(pageResult, tableService);

            return(increCol);
        }