MigrationCodeGenerator 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为基于代码的迁移生成代码的提供程序的基类。
public abstract class MigrationCodeGeneratortype MigrationCodeGenerator = classPublic MustInherit Class MigrationCodeGenerator- 继承
- 
				MigrationCodeGenerator
- 派生
构造函数
| MigrationCodeGenerator() | 为基于代码的迁移生成代码的提供程序的基类。 | 
属性
| AnnotationGenerators | 获取 AnnotationCodeGenerator 正在使用的实例。 | 
方法
| Generate(String, IEnumerable<MigrationOperation>, String, String, String, String) | 生成应添加到用户项目的代码。 | 
| GetDefaultNamespaces(Boolean) | 获取必须为生成的任何代码输出为“using”或“Imports”指令的默认命名空间。 | 
| GetNamespaces(IEnumerable<MigrationOperation>) | 获取必须输出为“using”或“Imports”指令以处理给定操作生成的代码的命名空间。 |