protected void BaseFixtureSetup() { var db = new NeptuneSqlDatabase(); _sqlConnection = db.CreateConnection(); _sqlConnection.Open(); }
private static DataTable ExecuteSql(string sqlStatements, SqlConnection connection) { using (var comm = new SqlCommand(sqlStatements, connection)) { comm.CommandType = CommandType.Text; comm.CommandTimeout = CommandTimeoutInSeconds; var sqlResult = NeptuneSqlDatabase.ExecuteSqlCommand(comm); if (sqlResult.Tables.Count > 0) { return(sqlResult.Tables[0]); } return(null); } }