Example #1
0
        static void Main()
        {
            MySqlConnection con = new MySqlConnection();
            Type t = con.GetType();

            Oracle.ManagedDataAccess.Client.OracleConnection conn = new Oracle.ManagedDataAccess.Client.OracleConnection();
            Type t1 = conn.GetType();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();

            Application.Run(new WinFormTest());
        }
Example #2
0
 public void TestAbort()
 {
   string connStr = GetPoolingConnectionString();
   int threadId;
   using (MySqlConnection c = new MySqlConnection(connStr))
   {
     c.Open();
     threadId = c.ServerThread;
     MethodInfo abort = c.GetType().GetMethod("Abort",
       BindingFlags.NonPublic | BindingFlags.Instance);
     abort.Invoke(c, null);
   }
   using (MySqlConnection c1 = new MySqlConnection(connStr))
   {
     c1.Open();
     Assert.IsTrue(c1.ServerThread != threadId);
     KillConnection(c1);
   }
 }