using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace GWMS.Data { public class RoleConfiguration : IEntityTypeConfiguration { #region Public Methods public void Configure(EntityTypeBuilder builder) { builder.HasData( new IdentityRole { Name = "Undef", NormalizedName = "UNDEF" }, new IdentityRole { Name = "ExtUser", NormalizedName = "EXTUSER" }, new IdentityRole { Name = "ExtTransp", NormalizedName = "EXTTRANSP" }, new IdentityRole { Name = "User", NormalizedName = "USER" }, new IdentityRole { Name = "Admin", NormalizedName = "ADMIN" }, new IdentityRole { Name = "SuperAdmin", NormalizedName = "SUPERADMIN" } ); } #endregion Public Methods } }