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