示例#1
0
        /// <summary>
        /// Call this method to find out if there are any new or changed scripts that would be executed when the Run-method is called.
        /// </summary>
        public bool IsDbUpToDate()
        {
            RoundhouseMigrationRunner migrationRunner = GetMigrationRunner();

            RoundhouseUpdateCheckRunner updateCheckRunner = new RoundhouseUpdateCheckRunner(
                Container.get_an_instance_of <environments.EnvironmentSet>(),
                Container.get_an_instance_of <KnownFolders>(),
                Container.get_an_instance_of <FileSystemAccess>(),
                Container.get_an_instance_of <DatabaseMigrator>(),
                configuration,
                migrationRunner);

            return(updateCheckRunner.is_database_up_to_date());
        }