SqlModelComparer.CompareRelationship 方法
比較來源和目標模型中的關聯性。
命名空間: Microsoft.Data.Schema.Sql.SchemaModel
組件: Microsoft.Data.Schema.Sql (在 Microsoft.Data.Schema.Sql.dll 中)
語法
'宣告
Protected Overrides Sub CompareRelationship ( _
sourceRelationship As IModelRelationship, _
targetRelationship As IModelRelationship, _
configuration As ModelComparerConfiguration, _
changes As ModelComparisonChangeDefinition _
)
protected override void CompareRelationship(
IModelRelationship sourceRelationship,
IModelRelationship targetRelationship,
ModelComparerConfiguration configuration,
ModelComparisonChangeDefinition changes
)
protected:
virtual void CompareRelationship(
IModelRelationship^ sourceRelationship,
IModelRelationship^ targetRelationship,
ModelComparerConfiguration^ configuration,
ModelComparisonChangeDefinition^ changes
) override
abstract CompareRelationship :
sourceRelationship:IModelRelationship *
targetRelationship:IModelRelationship *
configuration:ModelComparerConfiguration *
changes:ModelComparisonChangeDefinition -> unit
override CompareRelationship :
sourceRelationship:IModelRelationship *
targetRelationship:IModelRelationship *
configuration:ModelComparerConfiguration *
changes:ModelComparisonChangeDefinition -> unit
protected override function CompareRelationship(
sourceRelationship : IModelRelationship,
targetRelationship : IModelRelationship,
configuration : ModelComparerConfiguration,
changes : ModelComparisonChangeDefinition
)
參數
- sourceRelationship
型別:Microsoft.Data.Schema.SchemaModel.IModelRelationship
來源模型中的關聯性。
- targetRelationship
型別:Microsoft.Data.Schema.SchemaModel.IModelRelationship
目標模型中的關聯性。
- configuration
型別:Microsoft.Data.Schema.SchemaModel.ModelComparerConfiguration
設定比較的執行方式。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。