Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="config">Adapter configuration</param>
 public AzureDbPointOutput(AzureDbConfig config)
 {
     _helper = new DatabaseHelper(config);
 }