1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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 = "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 = "مؤجلة"
- }
- ) ;
- }
- }
- }
|