Example #1
0
        static void Main(string[] args)
        {
            // 读
            ReadMySQLData reader = new ReadMySQLData();

            reader.ReadDataToDataSet();
            reader.ReadDataByReader();


            // 写
            WriteMySQLData writer = new WriteMySQLData();

            writer.TestInsertUpdateDelete();


            // UTF-8 编码的读写.
            ReadWriteUtf8 utf8WritrReader = new ReadWriteUtf8();

            utf8WritrReader.TestInsertSelect();


            // 存储过程.
            CallMySqlProc proc = new CallMySqlProc();

            proc.TestCallProcFunc();



            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            // 读
            ReadMySQLData reader = new ReadMySQLData();

            reader.ReadDataToDataSet();
            reader.ReadDataByReader();


            // 写
            WriteMySQLData writer = new WriteMySQLData();

            writer.TestInsertUpdateDelete();


            Console.ReadLine();
        }