DeliveryDocumentShell.cs 497 B

123456789101112131415161718
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class DeliveryDocumentShell : DetailShell<DeliveryDetailModel, DeliveryDocument>
  6. {
  7. static DeliveryDocumentShell()
  8. {
  9. Columns
  10. .Map(nameof(DocumentID), x => x.DocumentLink.ID)
  11. .Map(nameof(DocumentName), x => x.DocumentLink.FileName);
  12. }
  13. public Guid DocumentID => Get<Guid>();
  14. public String DocumentName => Get<String>();
  15. }
  16. }