Exemple #1
0
        private static MigrationOptions SetupMigrationOptions(Action <MigrationOptions> setupAction)
        {
            MigrationOptions options = new MigrationOptions();

            if (setupAction != null)
            {
                setupAction.Invoke(options);
            }
            else
            {
                options.AddScriptsProvider(AssemblyMigrationScriptsProvider.GetEntryAssemblyProvider());
            }

            return(options);
        }