File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/LinkDotNet.Blog.Infrastructure/Persistence/Sql Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11using System ;
22using LinkDotNet . Blog . Domain ;
3+ using LinkDotNet . Blog . Infrastructure . Persistence . Sql . Mapping ;
34using Microsoft . EntityFrameworkCore ;
45
56namespace LinkDotNet . Blog . Infrastructure . Persistence . Sql ;
@@ -32,6 +33,13 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
3233 {
3334 ArgumentNullException . ThrowIfNull ( modelBuilder ) ;
3435
35- modelBuilder . ApplyConfigurationsFromAssembly ( typeof ( BlogDbContext ) . Assembly ) ;
36+ modelBuilder . ApplyConfiguration ( new BlogPostConfiguration ( Database ) ) ;
37+ modelBuilder . ApplyConfiguration ( new BlogPostRecordConfiguration ( ) ) ;
38+ modelBuilder . ApplyConfiguration ( new ProfileInformationEntryConfiguration ( ) ) ;
39+ modelBuilder . ApplyConfiguration ( new ShortCodeConfiguration ( ) ) ;
40+ modelBuilder . ApplyConfiguration ( new SimilarBlogPostConfiguration ( Database ) ) ;
41+ modelBuilder . ApplyConfiguration ( new SkillConfiguration ( ) ) ;
42+ modelBuilder . ApplyConfiguration ( new TalkConfiguration ( ) ) ;
43+ modelBuilder . ApplyConfiguration ( new UserRecordConfiguration ( ) ) ;
3644 }
3745}
You can’t perform that action at this time.
0 commit comments