MigrationCodeGenerator.GetNamespaces 方法

定义

获取必须输出为“using”或“Imports”指令的命名空间,以处理给定操作生成的代码。

protected virtual System.Collections.Generic.IEnumerable<string> GetNamespaces (System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> operations);
abstract member GetNamespaces : seq<System.Data.Entity.Migrations.Model.MigrationOperation> -> seq<string>
override this.GetNamespaces : seq<System.Data.Entity.Migrations.Model.MigrationOperation> -> seq<string>
Protected Overridable Function GetNamespaces (operations As IEnumerable(Of MigrationOperation)) As IEnumerable(Of String)

参数

operations
IEnumerable<MigrationOperation>

要为其生成代码的操作。

返回

命名空间名称的有序列表。

适用于