From 147fb683f72437bc07870364143227f93f78533c Mon Sep 17 00:00:00 2001 From: shept Date: Thu, 17 Apr 2025 01:08:18 +0500 Subject: [PATCH] say NO to Database.EnsureCreated() --- .../SurveyBackend.Infrastructure/Data/ApplicationDbContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SurveyBackend/SurveyBackend.Infrastructure/Data/ApplicationDbContext.cs b/SurveyBackend/SurveyBackend.Infrastructure/Data/ApplicationDbContext.cs index af8eed6..66a0468 100644 --- a/SurveyBackend/SurveyBackend.Infrastructure/Data/ApplicationDbContext.cs +++ b/SurveyBackend/SurveyBackend.Infrastructure/Data/ApplicationDbContext.cs @@ -13,7 +13,7 @@ public class ApplicationDbContext : SurveyDbContext public ApplicationDbContext(DbContextOptions options) : base(options) { - Database.EnsureCreated(); + } protected override void OnModelCreating(ModelBuilder modelBuilder)