Beispiel #1
0
        public static void Initialize(string connectionString)
        {
            TransientFaultHandling.InitializeRetryManager();

            // Setup the database
            DbUp.DeployChanges.To
            .SqlDatabase(connectionString)
            .WithScriptsEmbeddedInAssemblies(new[] {
                typeof(RelationalStore).Assembly,     // Contains the Nevermore required script
                typeof(StorageInitializer).Assembly   // Your scripts
            })
            .WithScript("schema-startup", CreateStartupSchema(connectionString))
            .Build()
            .PerformUpgrade();
        }
Beispiel #2
0
 static IntegrationTestDatabase()
 {
     TransientFaultHandling.InitializeRetryManager();
 }