mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 09:01:18 +03:00
Add project files.
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using PracticeCalendar.Domain.Entities;
|
||||
|
||||
namespace PracticeCalendar.Infrastructure.Persistence.Configuration
|
||||
{
|
||||
public class PracticeEventConfiguration : IEntityTypeConfiguration<PracticeEvent>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<PracticeEvent> builder)
|
||||
{
|
||||
builder.Property(x => x.Title)
|
||||
.HasMaxLength(120)
|
||||
.IsRequired();
|
||||
builder.Property(x => x.Description)
|
||||
.HasMaxLength(1000)
|
||||
.IsRequired();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user