25 lines
740 B
C#
25 lines
740 B
C#
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);
|
|
}
|
|
}
|
|
}
|