使用提供的原始程式檔和目標連接字串,準備 SchemaDeployment 物件。
命名空間: Microsoft.Data.Schema.Build
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Public Sub Setup ( _
sourceSchemaFile As FileInfo, _
targetConnectionString As String _
)
public void Setup(
FileInfo sourceSchemaFile,
string targetConnectionString
)
public:
void Setup(
FileInfo^ sourceSchemaFile,
String^ targetConnectionString
)
member Setup :
sourceSchemaFile:FileInfo *
targetConnectionString:string -> unit
public function Setup(
sourceSchemaFile : FileInfo,
targetConnectionString : String
)
參數
- sourceSchemaFile
型別:System.IO.FileInfo
來源資料庫檔案的 FileInfo。
- targetConnectionString
型別:System.String
目標資料庫的連接字串。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
SchemaDeploymentConstructor 類別