DigitalFormInstanceModel.cs 757 B

1234567891011121314151617181920
  1. using System;
  2. using InABox.Core;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public abstract class DigitalFormInstanceModel<TModel, TShell, TEntity> : CoreRepository<TModel, TShell, TEntity>
  7. where TModel : CoreRepository<TModel, TShell, TEntity>
  8. where TShell : Shell<TModel, TEntity>, new()
  9. where TEntity : Entity, IRemotable, IPersistent, IDigitalFormInstance, new()
  10. {
  11. protected DigitalFormInstanceModel(IModelHost host, Func<Filter<TEntity>>? filter = null, Func<string>? cachefilename = null) : base(host, filter, cachefilename)
  12. {
  13. }
  14. protected override Filter<TEntity> BaseFilter()
  15. => new Filter<TEntity>(x => x.FormCancelled).IsEqualTo(DateTime.MinValue);
  16. }
  17. }