Migration.UpOperations 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
那些 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。
更多資訊與範例請參見 資料庫遷移 。