ToolingFacade.Update(String, Boolean) 方法

定义

汇报数据库进行指定的迁移。

public void Update (string targetMigration, bool force);
member this.Update : string * bool -> unit
Public Sub Update (targetMigration As String, force As Boolean)

参数

targetMigration
String

要迁移到的迁移的 ID。 如果提供 null,数据库将更新为最新迁移。

force
Boolean

指示自动迁移期间数据丢失是否可接受的值。

适用于