protected virtual bool EquivalentUniqueConstraints( [NotNull] IKey sourceKey, [NotNull] IKey targetKey, [NotNull] IDictionary <IProperty, IProperty> columnMap) { Check.NotNull(sourceKey, "sourceKey"); Check.NotNull(targetKey, "targetKey"); Check.NotNull(columnMap, "columnMap"); return (NameBuilder.KeyName(sourceKey) == NameBuilder.KeyName(targetKey) && EquivalentColumnReferences(sourceKey.Properties, targetKey.Properties, columnMap)); }