Projektdateien hinzufügen.
This commit is contained in:
24
ECM.JobRunner.Web/Data/DatabaseService.cs
Normal file
24
ECM.JobRunner.Web/Data/DatabaseService.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using DigitalData.Modules.Database;
|
||||
using System.Data;
|
||||
|
||||
namespace ECM.JobRunner.Web.Data
|
||||
{
|
||||
public class DatabaseService
|
||||
{
|
||||
|
||||
private const string QUERY_GET_JOBS = "";
|
||||
|
||||
public MSSQLServer MSSQL { get; set; }
|
||||
|
||||
public DatabaseService(LoggingService Logging, IConfiguration Config)
|
||||
{
|
||||
var oLogConfig = Logging.LogConfig;
|
||||
var oLogger = Logging.LogConfig.GetLogger();
|
||||
var oConnectionString = Config["Config:ConnectionString"];
|
||||
|
||||
oLogger.Debug("Establishing MSSQL Database connection..");
|
||||
MSSQL = new MSSQLServer(oLogConfig, oConnectionString);
|
||||
oLogger.Debug("MSSQL Connection: [{0}]", MSSQL.CurrentConnectionString);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user