autobus-api_old/AutobusApi.Infrastructure/Identity/Configurations/IdentityRoleConfiguration.cs
2023-11-15 19:00:34 +02:00

31 lines
815 B
C#

using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace AutobusApi.Infrastructure.Identity.Configurations;
public class IdentityRoleConfiguration : IEntityTypeConfiguration<IdentityRole<int>>
{
public void Configure(EntityTypeBuilder<IdentityRole<int>> builder)
{
builder
.ToTable("identity_roles");
builder
.Property(r => r.Id)
.HasColumnName("id");
builder
.Property(r => r.Name)
.HasColumnName("name");
builder
.Property(r => r.NormalizedName)
.HasColumnName("normalized_name");
builder
.Property(r => r.ConcurrencyStamp)
.HasColumnName("concurrency_stamp");
}
}