Exemplo n.º 1
0
 public void InitOnce()
 {
     ConfigLoader.Load(@"CoreConfig.xml");
     try {
         GenericDbHelper.DropAllTables();
         new AllDbVersions().Version();
     }
     catch {}
 }
Exemplo n.º 2
0
        public void InitOnce()
        {
            ConfigLoader.Load(@"CoreConfig.xml");
//			DbHelper.TestMode = true;
            try
            {
                using (IConnection con = new ConnectionCollector().GetConnection())
                {
                    GenericDbHelper.DropAllTables();
                    new DbHelper().CreateTable();
                }
            } catch (Exception ex) { ex.ToString(); }
        }
Exemplo n.º 3
0
 public void DbCreator_1()
 {
     ConfigLoader.Load(@"CoreConfig.xml");
     GenericDbHelper.DropAllTables();
     GenericDbHelper.CreateTable(typeof(TaskSync));
 }