UserTaskStatusConfiguration.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 = "To Do",
  23. NameAr = "جديدة"
  24. },
  25. new UserTaskStatus
  26. {
  27. Id = 2,
  28. NameEn = "In progress",
  29. NameAr = "قيد العمل"
  30. },
  31. new UserTaskStatus
  32. {
  33. Id = 3,
  34. NameEn = "Need Review",
  35. NameAr = "تحتاج مراجعة"
  36. }
  37. ,
  38. new UserTaskStatus
  39. {
  40. Id = 4,
  41. NameEn = "Done", //(after closed from employee / manager)
  42. NameAr = "تمت"
  43. }
  44. //,
  45. //new UserTaskStatus
  46. //{
  47. // Id = 5,
  48. // NameEn = "Delayed",
  49. // NameAr = "مؤجلة"
  50. //}
  51. ) ;
  52. }
  53. }
  54. }