Sharp.Migrations.Runner.UpdateCurrentVersion C# (CSharp) Method

UpdateCurrentVersion() private method

private UpdateCurrentVersion ( MigrationPlanStep step ) : void
step Sharp.Migrations.Runners.MigrationPlanStep
return void
        private void UpdateCurrentVersion(MigrationPlanStep step)
        {
            if (!step.ShouldUpdateVersion) {
                return;
            }
            if (step.Direction == Direction.Up) {
                VersionRepository.InsertVersion(step.MigrationInfo);
            }
            else {
                VersionRepository.RemoveVersion(step.MigrationInfo);
            }
        }