added connection string logging
This commit is contained in:
@ -128,6 +128,7 @@ namespace IO.Swagger
|
|||||||
{
|
{
|
||||||
throw new Exception("Database connection string not found in environment variable.");
|
throw new Exception("Database connection string not found in environment variable.");
|
||||||
}
|
}
|
||||||
|
Console.WriteLine(connectionString);
|
||||||
services.AddScoped<IUserRepository, UserRepository>();
|
services.AddScoped<IUserRepository, UserRepository>();
|
||||||
services.AddDbContext<BankDbContext>(x => x.UseSqlServer(connectionString: connectionString));
|
services.AddDbContext<BankDbContext>(x => x.UseSqlServer(connectionString: connectionString));
|
||||||
services.AddSingleton<JwtService>();
|
services.AddSingleton<JwtService>();
|
||||||
|
|||||||
Reference in New Issue
Block a user