DbMigrationsConfiguration.ContextType 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 the derived DbContext representing the model to be migrated.

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

Syntax

'Declaration
Public Property ContextType As Type 
    Get 
    Set
'Usage
Dim instance As DbMigrationsConfiguration 
Dim value As Type 

value = instance.ContextType

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

Property Value

Type: System.Type

See Also

Reference

DbMigrationsConfiguration Class

System.Data.Entity.Migrations Namespace