public MigrationScopeRulesVerb(IMigrationRules rules, IMigrationDefinition definition, IVersionQualifier versionQualifier, ILogger logger) { this.rules = rules; this.definition = definition; this.versionQualifier = versionQualifier; this.logger = logger; }
public void AddChild(IVersionQualifier qualifier, IMigrationDefinition childDefinition) { var childList = (versionComparer.Compare(qualifier.StartVersion, fromVersion) >= 0) ? childDefinitions : outOfScopeChildDefinitions; try { childList.Add(qualifier, childDefinition); } catch (ArgumentException exception) { throw new MigrationConfigurationException( string.Format("Duplicate version {0} scopes", qualifier.StartVersion), exception); } }
public void AddChild(IVersionQualifier qualifier, IMigrationDefinition childDefinition) { throw new InvalidOperationException(); }