DbMigrationsConfiguration.TargetDatabase 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 to override the connection of the database to be migrated.

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

Syntax

'Declaration
Public Property TargetDatabase As DbConnectionInfo 
    Get 
    Set
'Usage
Dim instance As DbMigrationsConfiguration 
Dim value As DbConnectionInfo 

value = instance.TargetDatabase

instance.TargetDatabase = value
public DbConnectionInfo TargetDatabase { get; set; }
public:
property DbConnectionInfo^ TargetDatabase {
    DbConnectionInfo^ get ();
    void set (DbConnectionInfo^ value);
}
member TargetDatabase : DbConnectionInfo with get, set
function get TargetDatabase () : DbConnectionInfo 
function set TargetDatabase (value : DbConnectionInfo)

Property Value

Type: System.Data.Entity.Infrastructure.DbConnectionInfo

See Also

Reference

DbMigrationsConfiguration Class

System.Data.Entity.Migrations Namespace