語言

Migration.UpOperations 屬性

定義

那些 MigrationOperation會將資料庫「往上」遷移的 s。

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> UpOperations { get; }
member this.UpOperations : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation>
Public Overridable ReadOnly Property UpOperations As IReadOnlyList(Of MigrationOperation)

屬性值

備註

也就是說,需要對資料庫進行操作,從前一次遷移留下的狀態取得資料,使該遷移的日期 up-to。

更多資訊與範例請參見 資料庫遷移 。

適用於