DigitalFormInstanceLookups.cs 476 B

12345678910111213
  1. namespace InABox.Core
  2. {
  3. public abstract class DigitalFormInstanceLookups<TEntity,TLink,TForm> : EntityLookup<TForm>
  4. where TEntity : Entity
  5. where TLink : IEntityLink<TEntity>, new()
  6. where TForm : EntityForm<TEntity,TLink,TForm>, new()
  7. {
  8. public override Filter<TForm>? DefineFilter() => null;
  9. public override SortOrder<TForm> DefineSortOrder() =>
  10. new SortOrder<TForm>(x => x.Number, SortDirection.Ascending);
  11. }
  12. }