语言

DbMigrationsConfiguration.AutomaticMigrationDataLossAllowed 属性

定义

获取或设置一个值,该值指示在自动迁移期间是否可接受数据丢失。 如果设置为 false,则会在自动迁移过程中发生数据丢失时引发异常。

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

属性值

适用于