Version 10.5 of the SQL Comparison SDK includes changes that might break your projects that use the SQL Compare, SQL Data Compare, or SQL Packager APIs.
To fix your projects, you might need to do one or more of the following:
Options
classIn previous versions of the SQL Comparison SDK, comparison options were specified as a bit flags enum. For example:
Options.Default | Options.DropAndCreateInsteadOfAlter |
In version 10.5, options are specified using the methods in the Options
class. For example:
Options.Default.Plus(Options.DropAndCreateInsteadOfAlter) |
or
Options.Default.Except(Options.IgnoreFileGroups, Options.IgnoreComments) |
With version 10.5, projects must reference RedGate.Shared.ComparisonInterfaces.dll.
Projects using the SQL Data Compare API must now also reference RedGate.SQLCompare.Engine.dll.
DifferenceType
In version 10.5, the DifferenceType
enum has moved from RedGate.SQLCompare.Engine
to RedGate.Shared.ComparisonInterfaces
.
You need to update any files that use DifferenceType
:
using RedGate.Shared.ComparisonInterfaces
to the list of using
statements at the top of your files.RedGate.SQLCompare.Engine.DifferenceType
with RedGate.Shared.ComparisonInterfaces.DifferenceType
.When you distribute your application, you now need to include the following assemblies:
For more information, see Distributing your SDK applications.