Exemplo n.º 1
0
        public static void Drop()
        {
            var databaseBootstrapper = new DatabaseBootstrapper();

            databaseBootstrapper.DropIfExists();

            databaseBootstrapper.ClearPools();
        }
Exemplo n.º 2
0
        public static void CreateAndPopulate()
        {
            var databaseBootstrapper = new DatabaseBootstrapper();

            var createFiles = Directory.EnumerateFiles(rootDirectory + ScriptsDirectories.CreateScripts);

            databaseBootstrapper.CreateDatabase(createFiles);

            var updateFiles = Directory.EnumerateFiles(rootDirectory + ScriptsDirectories.UpdateScripts);

            databaseBootstrapper.PopulateDatabase(updateFiles);

            var dataFiles = Directory.EnumerateFiles(rootDirectory + ScriptsDirectories.DataScripts);

            databaseBootstrapper.PutDataInDatabase(dataFiles);

            databaseBootstrapper.ClearPools();
        }