Initial commit - Auth
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
// using Contracts;
|
||||
// using Microsoft.AspNetCore.Identity;
|
||||
// using Microsoft.EntityFrameworkCore;
|
||||
// using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
// namespace Auth.Domain.Configuration;
|
||||
|
||||
// public class RoleConfiguration : IEntityTypeConfiguration<IdentityRole>
|
||||
// {
|
||||
// private List<IdentityRole> CreateRoles()
|
||||
// {
|
||||
// var roleList = new List<IdentityRole>();
|
||||
// // foreach (var role in Enum.GetValues(typeof(AppEnum.Roles)))
|
||||
// // {
|
||||
// // var newRole = new IdentityRole()
|
||||
// // {
|
||||
// // Id = Guid.NewGuid().ToString(),
|
||||
// // Name = role.ToString(),
|
||||
// // NormalizedName = role.ToString().ToUpper(),
|
||||
// // ConcurrencyStamp = Guid.NewGuid().ToString()
|
||||
// // };
|
||||
// // roleList.Add(newRole);
|
||||
// // }
|
||||
|
||||
// return roleList;
|
||||
// }
|
||||
|
||||
|
||||
// public void Configure(EntityTypeBuilder<IdentityRole> builder)
|
||||
// {
|
||||
// builder.HasData(CreateRoles());
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user