Migration.DownOperations 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
那些 MigrationOperation會將資料庫「往下」遷移的 s。
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> DownOperations { get; }
member this.DownOperations : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation>
Public Overridable ReadOnly Property DownOperations As IReadOnlyList(Of MigrationOperation)
屬性值
備註
也就是說,需要對資料庫進行操作,將遷移後留下的狀態帶回遷移前的狀態。
更多資訊與範例請參見 資料庫遷移 。