示例#1
0
        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"];
        }
示例#2
0
        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;
 }