DbMigrationsConfiguration.CodeGenerator 属性

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

获取或设置为迁移搭建基架时要使用的代码生成器。

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

语法

声明
Public Property CodeGenerator As MigrationCodeGenerator 
    Get 
    Set
用法
Dim instance As DbMigrationsConfiguration 
Dim value As MigrationCodeGenerator 

value = instance.CodeGenerator

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

属性值

类型:System.Data.Entity.Migrations.Design.MigrationCodeGenerator

请参阅

参考

DbMigrationsConfiguration 类

System.Data.Entity.Migrations 命名空间