DbMigrationsConfiguration.AutomaticMigrationDataLossAllowed 属性

定义

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

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

属性值

适用于