Problem.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace RKISPATTERN.Models
  8. {
  9. class Problem
  10. {
  11. public int Id { get; set; }
  12. public string Name { get; set; }
  13. public string Decription { get; set; }
  14. public DateTime date { get; set; }
  15. public int customerId { get; set; }
  16. [ForeignKey("customerId")]
  17. public Customer customer { get; set; }
  18. public int? workerId { get; set; }
  19. [ForeignKey("workerId")]
  20. public Worker? worker { get; set; }
  21. public string status { get; set; }
  22. public Problem(int id, string name, string decription, DateTime date, Customer customer, Worker worker, string status)
  23. {
  24. Id = id;
  25. Name = name;
  26. Decription = decription;
  27. this.date = date;
  28. this.customer = customer;
  29. this.worker = worker;
  30. this.status = status;
  31. }
  32. public Problem(int id, string name, string decription, DateTime date, Customer customer, string status)
  33. {
  34. Id = id;
  35. Name = name;
  36. Decription = decription;
  37. this.date = date;
  38. this.customer = customer;
  39. this.status = status;
  40. }
  41. public Problem()
  42. {
  43. }
  44. }
  45. }