15 lines
391 B
C#
15 lines
391 B
C#
namespace CSR.Infrastructure.Persistence.Configurations;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
|
|
public class UserConfiguration : IEntityTypeConfiguration<User>
|
|
{
|
|
public void Configure(EntityTypeBuilder<User> builder)
|
|
{
|
|
builder.Property(u => u.PasswordHash)
|
|
.HasColumnName("Password")
|
|
.IsRequired();
|
|
}
|
|
}
|