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