Advertisement
Guest User

Untitled

a guest
May 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Timecard:
  2.  
  3. {
  4. public class Timecard
  5. {
  6. public int Id { get; set; }
  7. public string UserId { get; set; }
  8. public DateTime StartDate { get; set; }
  9. public DateTime EndDate { get; set; }
  10. public Status Status {get;set;}
  11. public int TotalHours { get; set; }
  12.  
  13. public virtual List<Workday> Workdays { get; set; }
  14. }
  15.  
  16. public enum Status
  17. {
  18. Submitted, Denied, Approved
  19. }
  20. }
  21.  
  22.  
  23. TimecardEntry:
  24.  
  25. public class Workday
  26. {
  27. public int Id { get; set; }
  28. public int TimecardId { get; set; }
  29. public DateTime Date { get; set; }
  30. public int Hours { get; set; }
  31. public virtual Timecard Timecard { get; set; }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement