DbMigrationsConfiguration.AutomaticMigrationDataLossAllowed 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在自動遷移期間,會取得或設定一個值,指示資料遺失是否可接受。 若設為 false,則若自動遷移過程中可能發生資料遺失,則會拋出例外。
public bool AutomaticMigrationDataLossAllowed { get; set; }
member this.AutomaticMigrationDataLossAllowed : bool with get, set
Public Property AutomaticMigrationDataLossAllowed As Boolean