public EntitiesChangesModel(
     Entity entity,
     PagedRecords pagedRecords,
     TableInfo tableInfo)
     : base(entity, pagedRecords, tableInfo)
 {
 }
 public EntitiesChangesModel(
     Entity entity,
     PagedRecords pagedRecords,
     TableInfo tableInfo)
     : base(entity, pagedRecords, tableInfo)
 {
 }
Example #3
0
 public EntitiesIndexModel(
     Entity entity,
     PagedRecords pagedRecords,
     TableInfo tableInfo)
 {
     Records = pagedRecords.Records;
     Columns = entity.DisplayProperties
         .Select(x => new Column(x, tableInfo.Order, tableInfo.OrderDirection)).ToList();
     Entity = entity;
     Pager =
         new PagerInfo(tableInfo.PerPage, tableInfo.Page, pagedRecords.TotalItems);
     Filters = pagedRecords.Filters.Where(x => x.IsVisible).ToList();
     TableInfo = tableInfo;
 }
Example #4
0
 public EntitiesIndexModel(
     Entity entity,
     PagedRecords pagedRecords,
     TableInfo tableInfo)
 {
     Records = pagedRecords.Records;
     Columns = entity.DisplayProperties
               .Select(x => new Column(x, tableInfo.Order, tableInfo.OrderDirection)).ToList();
     Entity = entity;
     Pager  =
         new PagerInfo(tableInfo.PerPage, tableInfo.Page, pagedRecords.TotalItems);
     Filters   = pagedRecords.Filters.Where(x => x.IsVisible).ToList();
     TableInfo = tableInfo;
 }