IDynamicGridDataComponent.cs 539 B

12345678910111213141516171819202122232425
  1. using InABox.Clients;
  2. using InABox.Core;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace InABox.DynamicGrid;
  9. public interface IDynamicGridDataComponent<T>
  10. where T : BaseObject
  11. {
  12. void Reload(Filters<T> criteria, Columns<T> columns, SortOrder<T>? sort, Action<QueryResult> action);
  13. T LoadItem(CoreRow rows);
  14. T[] LoadItems(CoreRow[] rows);
  15. void SaveItem(T item);
  16. void SaveItems(T[] items);
  17. void DeleteItems(CoreRow[] rows);
  18. }