public DatabaseHelper(AzureDbConfig config) { if (null == config || string.IsNullOrEmpty(config.ServerName) || string.IsNullOrEmpty(config.DatabaseName) || string.IsNullOrEmpty(config.UserName) || string.IsNullOrEmpty(config.Password)) throw new ArgumentNullException("Missing database connection settings. Check app.config file."); _config = config; }
public DatabaseHelper(AzureDbConfig config) { if (null == config || string.IsNullOrEmpty(config.ServerName) || string.IsNullOrEmpty(config.DatabaseName) || string.IsNullOrEmpty(config.UserName) || string.IsNullOrEmpty(config.Password)) { throw new ArgumentNullException("Missing database connection settings. Check app.config file."); } _config = config; }
/// <summary> /// Constructor /// </summary> /// <param name="config">Adapter configuration</param> public AzureDbPointOutput(AzureDbConfig config) { _helper = new DatabaseHelper(config); }