Пример #1
0
        //int64 ,decimal 的问题等等????
        //????
        //?????
        private void button1_Click(object sender, EventArgs ee)
        {
            ExecuteCmd("net stop mssqlserver");
            ExecuteCmd("net start mssqlserver");

            Guangzhou_GbEntities gb = new Guangzhou_GbEntities();
            gb.DeleteDatabase();
            gb.CreateDatabase();
            CreateTable("Down");
            CreateTable("Up");
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //mpos_gb_gz0511Entities mpos_gb = new mpos_gb_gz0511Entities();
            GuangZhou_GnEntities gn = new GuangZhou_GnEntities();
            Guangzhou_GbEntities gb = new Guangzhou_GbEntities();
            gb.CommandTimeout = 0;

            sqlserver_mpos_gb_gz = gn.mpos_gb_gz;
            gb_dns_syn = gb.Gb_DNS_Syn;
            gb_pdp_fin = gn.Gb_PDP_Fin;
            gb_cell_syn = gn.Gb_Cell_Syn;
            gb_cell_repeat = gn.Gb_Cell_Repeat;
            mytcpsession = gb.myTcpSession;

            //gb_gz = mpos_gb.gb_gz_tousu;
        }