Files
2022-10-18 00:03:51 +03:00

20 lines
621 B
C#

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PracticeCalendar.Domain.Entities.PracticeEvent;
namespace PracticeCalendar.Infrastructure.Persistence.Configuration
{
public class AttendeeConfiguration : IEntityTypeConfiguration<Attendee>
{
public void Configure(EntityTypeBuilder<Attendee> builder)
{
builder.Property(x => x.Name)
.HasMaxLength(100)
.IsRequired();
builder.Property(x => x.EmailAddress)
.HasMaxLength(100)
.IsRequired();
}
}
}