示例#1
0
        private void btnConstructor3_Click(object sender, EventArgs e)
        {
            string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Program Files\AccountPlus\Database\AccountPlus.mdb;Jet OLEDB:Database Password=admin;";
            string providerName = "System.Data.OleDb";

            DBHelper helper = new DBHelper(connectionString, providerName);
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();
            _dbHelper = new DBHelper();

            lblDBName.Text = "Database/ Provider: " +  _dbHelper.Database + "/ " + _dbHelper.Provider;
        }
示例#3
0
 private void btnConstructor2_Click(object sender, EventArgs e)
 {
     DBHelper helper = new  DBHelper("con");
 }