mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
15 lines
419 B
C#
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);
|
|
}
|
|
} |