2024-09-30 14:47:29 +02:00

15 lines
419 B
C#

using Database.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Database.Configurations;
public class NoteConfiguration : IEntityTypeConfiguration<Note>
{
public void Configure(EntityTypeBuilder<Note> builder)
{
builder.HasKey(note => note.Id);
builder.Property(note => note.PlayerNote).IsRequired().HasMaxLength(500);
}
}