UniversityConfiguration.cs 1022 B

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 UniversityConfiguration : IEntityTypeConfiguration<University>
  17. {
  18. public void Configure(EntityTypeBuilder<University> builder)
  19. {
  20. builder.HasData(
  21. new University { NameEn = "Fahd Univ", NameAr = "جامعة الملك فهد", Id = 1 },
  22. new University { NameEn = "Riydh Univ", NameAr = "جامعة الرياض", Id = 2 },
  23. new University { NameEn = "Geda Univ", NameAr = "جامعة جدة", Id = 3 }
  24. );
  25. }
  26. }
  27. }