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 { public void Configure(EntityTypeBuilder builder) { builder.HasData( new UserTaskStatus { Id = 1, NameEn = "New", NameAr = "جديدة" }, new UserTaskStatus { Id = 2, NameEn = "Under progress", NameAr = "قيد العمل" }, new UserTaskStatus { Id = 3, NameEn = "Closed", NameAr = "أغلقت" } , new UserTaskStatus { Id = 4, NameEn = "Completed", //(after closed from employee / manager) NameAr = "تمت" }, new UserTaskStatus { Id = 5, NameEn = "Delayed", NameAr = "مؤجلة" } ) ; } } }