SchemaDeploymentConstructor.Setup 方法 (DataSchemaModel, DataSchemaModel, ModelComparisonResult)
使用提供的來源和目標結構描述模型以及指定的比較結果,準備 SchemaDeployment 物件。
命名空間: Microsoft.Data.Schema.Build
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Public Sub Setup ( _
source As DataSchemaModel, _
target As DataSchemaModel, _
modelDifference As ModelComparisonResult _
)
public void Setup(
DataSchemaModel source,
DataSchemaModel target,
ModelComparisonResult modelDifference
)
public:
void Setup(
DataSchemaModel^ source,
DataSchemaModel^ target,
ModelComparisonResult^ modelDifference
)
member Setup :
source:DataSchemaModel *
target:DataSchemaModel *
modelDifference:ModelComparisonResult -> unit
public function Setup(
source : DataSchemaModel,
target : DataSchemaModel,
modelDifference : ModelComparisonResult
)
參數
- source
型別:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
來源資料庫的 DataSchemaModel。
- target
型別:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
目標資料庫的 DataSchemaModel。
- modelDifference
型別:Microsoft.Data.Schema.SchemaModel.ModelComparisonResult
ModelComparisonResult ,描述兩個模型之間的差異。
備註
來源和目標模型必須是相同的資料庫結構描述提供者。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
SchemaDeploymentConstructor 類別