Share via


SqlScriptComparer Class

Compares Transact-SQL scripts and abstract syntax trees (ASTs).

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.ScriptDom.Sql.SqlScriptComparer

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)

Syntax

'Declaration
Public NotInheritable Class SqlScriptComparer
public sealed class SqlScriptComparer
public ref class SqlScriptComparer sealed
[<Sealed>]
type SqlScriptComparer =  class end
public final class SqlScriptComparer

The SqlScriptComparer type exposes the following members.

Constructors

  Name Description
Public method SqlScriptComparer(SqlDatabaseSchemaProvider, ModelCollation, Boolean, Boolean, Boolean) Initializes a new instance of the SqlScriptComparer class.
Public method SqlScriptComparer(SqlDatabaseSchemaProvider, ModelCollation, Boolean, Boolean, Boolean, Boolean) Initializes a new instance of the SqlScriptComparer class.

Top

Methods

  Name Description
Public method Compare(TextReader, TextReader) Compares two text readers.
Public method Compare(String, String) Compares two scripts.
Public method Compare(TSqlFragment, TSqlFragment) Compares two fragments.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetDifferences(String, String) Creates a list of differences between two scripts.
Public method GetDifferences(TSqlFragment, TSqlFragment) Creates a list of differences between two fragments.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.ScriptDom.Sql Namespace