DbMigrationsConfiguration.ContextType 属性

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

获取或设置表示要迁移的模型的派生 DbContext。

命名空间:  System.Data.Entity.Migrations
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Property ContextType As Type 
    Get 
    Set
用法
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)

属性值

类型:System.Type

请参阅

参考

DbMigrationsConfiguration 类

System.Data.Entity.Migrations 命名空间