Esempio n. 1
0
        protected void BaseFixtureSetup()
        {
            var db = new NeptuneSqlDatabase();

            _sqlConnection = db.CreateConnection();
            _sqlConnection.Open();
        }
Esempio n. 2
0
 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);
     }
 }