diff --git a/src/VerticalSliceArchitectureTemplate/Common/AppDbContext.cs b/src/VerticalSliceArchitectureTemplate/Common/AppDbContext.cs index fbf6ec8..5791da3 100644 --- a/src/VerticalSliceArchitectureTemplate/Common/AppDbContext.cs +++ b/src/VerticalSliceArchitectureTemplate/Common/AppDbContext.cs @@ -3,4 +3,9 @@ public partial class AppDbContext : DbContext { public AppDbContext(DbContextOptions options) : base(options) { } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder.ApplyConfigurationsFromAssembly(typeof(AppDbContext).Assembly); + } } \ No newline at end of file