ContactLookups.cs 631 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Linq;
  3. using InABox.Clients;
  4. using InABox.Core;
  5. namespace Comal.Classes
  6. {
  7. public class ContactLookups : EntityLookup<Contact>
  8. {
  9. public override Columns<Contact> DefineColumns()
  10. {
  11. return new Columns<Contact>(
  12. x => x.ID,
  13. x => x.Name,
  14. x => x.Email
  15. );
  16. }
  17. public override Filter<Contact>? DefineFilter()
  18. {
  19. return null;
  20. }
  21. public override SortOrder<Contact> DefineSortOrder()
  22. {
  23. return new SortOrder<Contact>(x => x.Name);
  24. }
  25. }
  26. }