mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 15:01:23 +03:00
20 lines
621 B
C#
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();
|
|
}
|
|
}
|
|
}
|