QualificationConfiguration.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. using Countries.NET.Database;
  13. using System.Runtime.ConstrainedExecution;
  14. namespace MTWorkHR.Infrastructure.Configurations
  15. {
  16. public class QualificationConfiguration : IEntityTypeConfiguration<Qualification>
  17. {
  18. public void Configure(EntityTypeBuilder<Qualification> builder)
  19. {
  20. builder.HasData(
  21. new Qualification { NameEn = "BSC", NameAr = "بكالوريوس", Id = 1 },
  22. new Qualification { NameEn = "Master", NameAr = "درجة الماجيستير", Id = 2 },
  23. new Qualification { NameEn = "Doctor", NameAr = "درحة الدكتوراه", Id = 3 }
  24. );
  25. }
  26. }
  27. }