public static void CreateDb() { try { CommonDB dbc = new CommonDB(); if (dbc.ResetAndCreateDb()) { dbc.InitializeDatabase(); } } catch (Exception) { throw; } }
public ProxyDb(bool createDB = false) { try { if (createDB) { CommonDB dbc = new CommonDB(); if (dbc.ResetAndCreateDb()) { dbc.InitializeDatabase(); } } } catch (Exception) { throw; } }