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

31 lines
827 B
C#

using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace AutobusApi.Infrastructure.Identity.Configurations;
public class IdentityRoleClaimConfiguration : IEntityTypeConfiguration<IdentityRoleClaim<int>>
{
public void Configure(EntityTypeBuilder<IdentityRoleClaim<int>> builder)
{
builder
.ToTable("identity_role_claims");
builder
.Property(rc => rc.Id)
.HasColumnName("id");
builder
.Property(rc => rc.RoleId)
.HasColumnName("role_id");
builder
.Property(rc => rc.ClaimType)
.HasColumnName("claim_type");
builder
.Property(rc => rc.ClaimValue)
.HasColumnName("claim_value");
}
}