static DataConfig() { StreamReader reader = new StreamReader(Path.Combine(baseDir, configPath)); ConfigModel model = JsonConvert.DeserializeObject <ConfigModel>(reader.ReadToEnd()); SQLConfig = model.SQLServerConfig; MySQLConfig = model.MySQLServerConfig; }
public ConfigModel(SQLConfig SQLServerConfig, MySQLConfig MySQLServerConfig) { this.SQLServerConfig = SQLServerConfig; this.MySQLServerConfig = MySQLServerConfig; }