123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using Microsoft.AspNetCore.Identity;
- using Microsoft.EntityFrameworkCore.Metadata.Builders;
- using Microsoft.EntityFrameworkCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using MTWorkHR.Infrastructure.Entities;
- using MTWorkHR.Core.Entities.Base;
- using MTWorkHR.Core.Entities;
- namespace MTWorkHR.Infrastructure.Configurations
- {
- public class UserTaskStatusConfiguration : IEntityTypeConfiguration<UserTaskStatus>
- {
-
- public void Configure(EntityTypeBuilder<UserTaskStatus> builder)
- {
-
- builder.HasData(
- new UserTaskStatus
- {
- Id = 1,
- NameEn = "To Do",
- NameAr = "جديدة"
- },
- new UserTaskStatus
- {
- Id = 2,
- NameEn = "In progress",
- NameAr = "قيد العمل"
- },
- new UserTaskStatus
- {
- Id = 3,
- NameEn = "Need Review",
- NameAr = "تحتاج مراجعة"
- }
- ,
- new UserTaskStatus
- {
- Id = 4,
- NameEn = "Done", //(after closed from employee / manager)
- NameAr = "تمت"
- }
- //,
- //new UserTaskStatus
- //{
- // Id = 5,
- // NameEn = "Delayed",
- // NameAr = "مؤجلة"
- //}
- ) ;
- }
- }
- }
|