using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace OliverBooth.Common.Data.Web.Configuration;
///
/// Represents the configuration for the entity.
///
internal sealed class SiteConfigurationConfiguration : IEntityTypeConfiguration
{
///
public void Configure(EntityTypeBuilder builder)
{
builder.ToTable("SiteConfig");
builder.HasKey(x => x.Key);
builder.Property(x => x.Key).HasMaxLength(50).IsRequired();
builder.Property(x => x.Value).HasMaxLength(1000);
}
}