SqlScriptComparer.GetDifferences 方法 (TSqlFragment, TSqlFragment)

创建两个片断之间的差异列表。

命名空间:  Microsoft.Data.Schema.ScriptDom.Sql
程序集:  Microsoft.Data.Schema.Sql(在 Microsoft.Data.Schema.Sql.dll 中)

语法

声明
Public Function GetDifferences ( _
    oldScript As TSqlFragment, _
    newScript As TSqlFragment _
) As IList(Of SqlScriptComparisonResult)
public IList<SqlScriptComparisonResult> GetDifferences(
    TSqlFragment oldScript,
    TSqlFragment newScript
)
public:
IList<SqlScriptComparisonResult^>^ GetDifferences(
    TSqlFragment^ oldScript, 
    TSqlFragment^ newScript
)
member GetDifferences : 
        oldScript:TSqlFragment * 
        newScript:TSqlFragment -> IList<SqlScriptComparisonResult> 
public function GetDifferences(
    oldScript : TSqlFragment, 
    newScript : TSqlFragment
) : IList<SqlScriptComparisonResult>

参数

返回值

类型:System.Collections.Generic.IList<SqlScriptComparisonResult>
两个片断之间的差异列表。

.NET Framework 安全性

请参见

参考

SqlScriptComparer 类

GetDifferences 重载

Microsoft.Data.Schema.ScriptDom.Sql 命名空间