IListDataModel.cs 538 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using InABox.Core;
  4. namespace comal.timesheets
  5. {
  6. public interface IListDataModel<TEntity, TItem> : ICoreDataModel
  7. where TEntity : Entity, IRemotable, IPersistent, new()
  8. where TItem : CoreDataModelItem, new()
  9. {
  10. IList<TItem> Items { get; set; }
  11. void BeforeLoad(MultiQuery query, Filter<TEntity> filter);
  12. void AfterLoad(MultiQuery query, Filter<TEntity> filter);
  13. void Load(Filter<TEntity> filter, Action loaded = null);
  14. }
  15. }