Program.cs und appsettings.json bearbeitet. Abschnitt Config aus appsettings.json entfernt.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using DigitalData.Modules.Database;
|
||||
using DigitalData.Modules.Logging;
|
||||
using EnvelopeGenerator.Application;
|
||||
using EnvelopeGenerator.Common;
|
||||
|
||||
namespace EnvelopeGenerator.Web.Services
|
||||
@@ -52,11 +53,11 @@ namespace EnvelopeGenerator.Web.Services
|
||||
|
||||
public DatabaseService(ILogger<DatabaseService> logger, IConfiguration config)
|
||||
{
|
||||
LogConfig logConfig = new LogConfig(LogConfig.PathType.CustomPath, config["Config:LogPath"], null, "Digital Data", "ECM.EnvelopeGenerator.Web");
|
||||
LogConfig logConfig = new LogConfig(LogConfig.PathType.CustomPath, config["NLog:variables:logDirectory"], null, "Digital Data", "ECM.EnvelopeGenerator.Web");
|
||||
_logger = logger;
|
||||
|
||||
_logger.LogInformation("Establishing MSSQL Database connection..");
|
||||
MSSQL = new MSSQLServer(logConfig, config["Config:ConnectionString"]);
|
||||
MSSQL = new MSSQLServer(logConfig, config.GetConnectionString(Key.Default));
|
||||
|
||||
if (MSSQL.DBInitialized == true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user