public void InitOnce() { ConfigLoader.Load(@"CoreConfig.xml"); try { GenericDbHelper.DropAllTables(); new AllDbVersions().Version(); } catch {} }
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(); } }
public void DbCreator_1() { ConfigLoader.Load(@"CoreConfig.xml"); GenericDbHelper.DropAllTables(); GenericDbHelper.CreateTable(typeof(TaskSync)); }