語言

DbMigrationsConfiguration.AutomaticMigrationDataLossAllowed 屬性

定義

在自動遷移期間,會取得或設定一個值,指示資料遺失是否可接受。 若設為 false,則若自動遷移過程中可能發生資料遺失,則會拋出例外。

public bool AutomaticMigrationDataLossAllowed { get; set; }
member this.AutomaticMigrationDataLossAllowed : bool with get, set
Public Property AutomaticMigrationDataLossAllowed As Boolean

屬性值

適用於