using Femto.Modules.Blog.Domain.Posts; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Femto.Modules.Blog.Data.Configurations; internal class PostConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder table) { table.ToTable("post"); table.OwnsMany(post => post.Media).WithOwner(); } }