Пример #1
0
        private void btnDrpDb_Click(object sender, EventArgs e)
        {
            Drop_Database drop_database = new Drop_Database();

            this.Hide();
            drop_database.Show();
        }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem.ToString() != "")
     {
         DataLayer.Configuration.DropDatabase(comboBox1.SelectedItem.ToString());
         Drop_Database drop = new Drop_Database();
         this.Dispose();
         drop.Show();
     }
 }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem.ToString() != "")
     {
         DataLayer.Configuration.DropDatabase(comboBox1.SelectedItem.ToString());
         Drop_Database drop = new Drop_Database();
         this.Dispose();
         drop.Show();
     }
 }
Пример #4
0
        private void Index_Load(object sender, EventArgs e)
        {
            //var connectionString = "mongodb://localhost";
            //var client = new MongoClient(connectionString);
            //var database = client.GetDatabase("mydb");
            //var collection = database.GetCollection<Entity>("testData");
            //var entity = collection.Find(x => x.Name != "");
            Create_Database crt = new Create_Database();

            crt.Close();
            Drop_Database drp = new Drop_Database();

            drp.Close();
        }
Пример #5
0
 private void Index_Load(object sender, EventArgs e)
 {
     //var connectionString = "mongodb://localhost";
     //var client = new MongoClient(connectionString);
     //var database = client.GetDatabase("mydb");
     //var collection = database.GetCollection<Entity>("testData");
     //var entity = collection.Find(x => x.Name != "");
     Create_Database crt = new Create_Database();
     crt.Close();
     Drop_Database drp = new Drop_Database();
     drp.Close();
 }
Пример #6
0
 private void btnDrpDb_Click(object sender, EventArgs e)
 {
     Drop_Database drop_database = new Drop_Database();
     this.Hide();
     drop_database.Show();
 }