Initial commit - Auth

This commit is contained in:
2026-08-05 21:15:14 +03:00
commit dda4d9e63f
1490 changed files with 53289 additions and 0 deletions
+33
View File
@@ -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());
// }
// }