Exemplo n.º 1
0
        private void btnDrpDb_Click(object sender, EventArgs e)
        {
            Drop_Database drop_database = new Drop_Database();

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