using NG_2023_Kanban.DataLayer.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace NG_2023_Kanban.DataLayer.EntityConfiguration { public class BoardConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasIndex(x => x.Id); builder.Property(x => x.Id).IsRequired(); builder.Property(x => x.Name).IsRequired(); builder.Property(x => x.Name).HasMaxLength(100); } } }