Example #1
0
        static DataConfig()
        {
            StreamReader reader = new StreamReader(Path.Combine(baseDir, configPath));
            ConfigModel  model  = JsonConvert.DeserializeObject <ConfigModel>(reader.ReadToEnd());

            SQLConfig   = model.SQLServerConfig;
            MySQLConfig = model.MySQLServerConfig;
        }
Example #2
0
 public ConfigModel(SQLConfig SQLServerConfig, MySQLConfig MySQLServerConfig)
 {
     this.SQLServerConfig   = SQLServerConfig;
     this.MySQLServerConfig = MySQLServerConfig;
 }