using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using MTWorkHR.Identity.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MTWorkHR.Identity.Configurations { public class RoleConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasData( new ApplicationRole { Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A", Name = "Admin", NormalizedName = "ADMIN", IsAdmin = true, IsDeleted = false, }, new ApplicationRole { Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E", Name = "Employee", NormalizedName = "EMPLOYEE", IsAdmin = false, IsDeleted = false, } ); } } }