private void btnDrpDb_Click(object sender, EventArgs e) { Drop_Database drop_database = new Drop_Database(); this.Hide(); drop_database.Show(); }
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(); } }
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(); }