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