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 1
1
using System ;
2
2
using LinkDotNet . Blog . Domain ;
3
+ using LinkDotNet . Blog . Infrastructure . Persistence . Sql . Mapping ;
3
4
using Microsoft . EntityFrameworkCore ;
4
5
5
6
namespace LinkDotNet . Blog . Infrastructure . Persistence . Sql ;
@@ -32,6 +33,13 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
32
33
{
33
34
ArgumentNullException . ThrowIfNull ( modelBuilder ) ;
34
35
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 ( ) ) ;
36
44
}
37
45
}
You can’t perform that action at this time.
0 commit comments