Пример #1
0
        public static void DropCurso()
        {
            database db = getDataBase();

            if (db.DatabaseExists() == true)
            {
                db.DeleteDatabase();
            }
        }
Пример #2
0
        private static database getDataBase()
        {
            database db = new database();

            if (db.DatabaseExists() == false)
            {
                db.CreateDatabase();
            }



            return(db);
        }