Exemple #1
0
        private void LoginForm_Load(object sender, EventArgs e)
        {
            string address = "server=192.168.1.32;initial catalog=jieshuibanxx_1;user=sa;password=sa";

            DBIBase dbi = new DBIBase(address);
            try
            {

                dbi.open();
            }
            catch
            {
                MessageBox.Show("数据库链接失败");
                this.Close();
            }
        }
Exemple #2
0
 public DBIBase(string connstring)
 {
     this._connstring = connstring;
     _DBIBase = this;
 }