init
This commit is contained in:
commit
ab2e20f7e1
72 changed files with 2000 additions and 0 deletions
14
Femto.Modules.Blog/Data/Configurations/PostConfiguration.cs
Normal file
14
Femto.Modules.Blog/Data/Configurations/PostConfiguration.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using Femto.Modules.Blog.Domain.Posts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Femto.Modules.Blog.Data.Configurations;
|
||||
|
||||
internal class PostConfiguration : IEntityTypeConfiguration<Post>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Post> table)
|
||||
{
|
||||
table.ToTable("post");
|
||||
table.OwnsMany(post => post.Media).WithOwner();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue