using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация каталога диалогов /// public sealed class DialogConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("Dialogs"); builder.HasKey(x => x.Id); builder.Property(x => x.Hue).HasDefaultValue("#666"); } }