diff --git a/CSETWebApi/CSETWeb_Api/CSETWebCore.DataLayer/Manual/CSETContext.cs b/CSETWebApi/CSETWeb_Api/CSETWebCore.DataLayer/Manual/CSETContext.cs index 91aff91f9..15eac7b15 100644 --- a/CSETWebApi/CSETWeb_Api/CSETWebCore.DataLayer/Manual/CSETContext.cs +++ b/CSETWebApi/CSETWeb_Api/CSETWebCore.DataLayer/Manual/CSETContext.cs @@ -14,6 +14,7 @@ using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; using Snickler.EFCore; namespace CSETWebCore.DataLayer.Model @@ -27,6 +28,7 @@ public CSETContext() { } + [ActivatorUtilitiesConstructor] public CSETContext(IConfiguration config) { _connectionString = config.GetConnectionString("CSET_DB");