public ConsoleApplication() { _generalInfo = new DTO.GeneralInfo(); IConfigurationBuilder builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appSettings.json"); IConfigurationRoot configuration = builder.Build(); _generalInfo.ScriptFolder = configuration["scriptFolder"]; _generalInfo.FileExtension = configuration["fileExtension"]; _generalInfo.ConnectionString = configuration["connectionString"]; }
public DatabaseManager() { _generalInfo = new DTO.GeneralInfo(); IConfigurationBuilder builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appSettings.json"); IConfigurationRoot configuration = builder.Build(); _generalInfo.ScriptFolder = configuration["scriptFolder"]; _generalInfo.FileExtension = configuration["fileExtension"]; _generalInfo.ConnectionString = configuration["connectionString"]; _limitList = Convert.ToInt32(configuration["limitListForTest"]); }
public DatabaseManager(DTO.GeneralInfo generalInfo, string connectionString) : base(connectionString) { _logger = LogManager.GetCurrentClassLogger(); _generalInfo = generalInfo; }
public DatabaseManager(DTO.GeneralInfo generalInfo) { _logger = LogManager.GetCurrentClassLogger(); _generalInfo = generalInfo; }