UserTaskStatusConfiguration.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using Microsoft.AspNetCore.Identity;
  2. using Microsoft.EntityFrameworkCore.Metadata.Builders;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using MTWorkHR.Infrastructure.Entities;
  10. using MTWorkHR.Core.Entities.Base;
  11. using MTWorkHR.Core.Entities;
  12. namespace MTWorkHR.Infrastructure.Configurations
  13. {
  14. public class UserTaskStatusConfiguration : IEntityTypeConfiguration<UserTaskStatus>
  15. {
  16. public void Configure(EntityTypeBuilder<UserTaskStatus> builder)
  17. {
  18. builder.HasData(
  19. new UserTaskStatus
  20. {
  21. Id = 1,
  22. NameEn = "New",
  23. NameAr = "جديدة"
  24. },
  25. new UserTaskStatus
  26. {
  27. Id = 2,
  28. NameEn = "Under progress",
  29. NameAr = "قيد العمل"
  30. },
  31. new UserTaskStatus
  32. {
  33. Id = 3,
  34. NameEn = "Closed",
  35. NameAr = "أغلقت"
  36. }
  37. ,
  38. new UserTaskStatus
  39. {
  40. Id = 4,
  41. NameEn = "Completed", //(after closed from employee / manager)
  42. NameAr = "تمت"
  43. },
  44. new UserTaskStatus
  45. {
  46. Id = 5,
  47. NameEn = "Delayed",
  48. NameAr = "مؤجلة"
  49. }
  50. ) ;
  51. }
  52. }
  53. }