From 8f6b9fae89d12b5c959f06fb2659fcff3d92758d Mon Sep 17 00:00:00 2001 From: TypoMustakes Date: Wed, 6 Dec 2023 23:32:34 +0100 Subject: [PATCH] Fixed InMemoryDb not being correctly started --- WD7UVN_HFT_2023241.Endpoint/Startup.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WD7UVN_HFT_2023241.Endpoint/Startup.cs b/WD7UVN_HFT_2023241.Endpoint/Startup.cs index 45bd93a..2ee1152 100644 --- a/WD7UVN_HFT_2023241.Endpoint/Startup.cs +++ b/WD7UVN_HFT_2023241.Endpoint/Startup.cs @@ -30,6 +30,8 @@ namespace WD7UVN_HFT_2023241.Endpoint { c.SwaggerDoc("v1", new OpenApiInfo { Title = "WD7UVN_HFT_2023241.Endpoint", Version = "v1" }); }); + + Database.Context = new CompanyDbContext(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.