added connection string logging

This commit is contained in:
2023-08-13 01:38:13 -04:00
parent f4035a22f7
commit adfa7d45ef

View File

@ -128,6 +128,7 @@ namespace IO.Swagger
{
throw new Exception("Database connection string not found in environment variable.");
}
Console.WriteLine(connectionString);
services.AddScoped<IUserRepository, UserRepository>();
services.AddDbContext<BankDbContext>(x => x.UseSqlServer(connectionString: connectionString));
services.AddSingleton<JwtService>();