private void RunScripts(Database database, bool databasePreexistsInitialize)
 {
     if (database == null)
     {
         throw new ArgumentNullException("database");
     }
     ScriptResourceExecutor.ExecuteScript(database, "SSD.EducationDataContext.sql");
 }
        private void MigrateToLatestVersion(EducationDataContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (context.Database.Exists())
            {
                ScriptResourceExecutor.ExecuteScript(context.Database, "SSD.EducationDataContext-PreDeploy.sql");
            }
            EducationConfiguration configuration = CreateMigrationsConfiguration(context);
            DbMigrator             migrator      = new DbMigrator(configuration);

            migrator.Update();
        }