DbMigrationsConfiguration.AutomaticMigrationDataLossAllowed Property

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Gets or sets a value indicating if data loss is acceptable during automatic migration. If set to false an exception will be thrown if data loss may occur as part of an automatic migration.

Namespace:  System.Data.Entity.Migrations
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Property AutomaticMigrationDataLossAllowed As Boolean 
    Get 
    Set
'Usage
Dim instance As DbMigrationsConfiguration 
Dim value As Boolean 

value = instance.AutomaticMigrationDataLossAllowed

instance.AutomaticMigrationDataLossAllowed = value
public bool AutomaticMigrationDataLossAllowed { get; set; }
public:
property bool AutomaticMigrationDataLossAllowed {
    bool get ();
    void set (bool value);
}
member AutomaticMigrationDataLossAllowed : bool with get, set
function get AutomaticMigrationDataLossAllowed () : boolean 
function set AutomaticMigrationDataLossAllowed (value : boolean)

Property Value

Type: System.Boolean

See Also

Reference

DbMigrationsConfiguration Class

System.Data.Entity.Migrations Namespace