17 lines
428 B
C#
17 lines
428 B
C#
namespace CSR.Infrastructure.Persistence.Configurations;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
|
|
public class RoleConfiguration : IEntityTypeConfiguration<Role>
|
|
{
|
|
public void Configure(EntityTypeBuilder<Role> builder)
|
|
{
|
|
builder.Property(u => u.Id)
|
|
.HasColumnName("RoleId");
|
|
|
|
builder.Property(u => u.Name)
|
|
.HasColumnName("RoleName");
|
|
}
|
|
}
|