Esempio n. 1
0
 public static void PopulateDatabaseIfNecessary()
 {
     if (!IsDatabasePopulated())
     {
         using (SalesDataContext dataContext = new SalesDataContext())
             dataContext.PopulateDatabase();
     }
 }
Esempio n. 2
0
 public static bool IsDatabasePopulated()
 {
     using (SalesDataContext dataContext = new SalesDataContext())
         return(dataContext.IsDatabaseTablesPopulated());
 }