31 lines
827 B
C#
31 lines
827 B
C#
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace AutobusApi.Infrastructure.Identity.Configurations;
|
|
|
|
public class IdentityUserClaimConfiguration : IEntityTypeConfiguration<IdentityUserClaim<int>>
|
|
{
|
|
public void Configure(EntityTypeBuilder<IdentityUserClaim<int>> builder)
|
|
{
|
|
builder
|
|
.ToTable("identity_user_claims");
|
|
|
|
builder
|
|
.Property(uc => uc.Id)
|
|
.HasColumnName("id");
|
|
|
|
builder
|
|
.Property(uc => uc.UserId)
|
|
.HasColumnName("user_id");
|
|
|
|
builder
|
|
.Property(uc => uc.ClaimType)
|
|
.HasColumnName("claim_type");
|
|
|
|
builder
|
|
.Property(uc => uc.ClaimValue)
|
|
.HasColumnName("claim_value");
|
|
}
|
|
}
|