diff --git a/.vscode/launch.json b/.vscode/launch.json index 258ba73..4eab533 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}GerbilManagerWebAPI/bin/Debug/net7.0/GerbilManager.dll", + "program": "${workspaceFolder}/GerbilManagerWebAPI/bin/Debug/net7.0/GerbilManagerWebAPI.dll", "args": [], "cwd": "${workspaceFolder}/GerbilManagerWebAPI", "stopAtEntry": false, diff --git a/GerbilManagerWebAPI/Program.cs b/GerbilManagerWebAPI/Program.cs index 5d0b822..c09d210 100644 --- a/GerbilManagerWebAPI/Program.cs +++ b/GerbilManagerWebAPI/Program.cs @@ -12,7 +12,7 @@ builder.Services.AddSwaggerGen(); builder.Services.AddSingleton(); -builder.Services.AddDbContext(opts => opts.UseSqlServer(Configuration.GetConnectionString("sqlConnection"))); +builder.Services.AddDbContext(opts => opts.UseSqlServer(builder.Configuration.GetConnectionString("sqlConnection"))); var app = builder.Build();