Share via


MigrationCodeGenerator.GetNamespaces Method

Definition

Gets the namespaces that must be output as "using" or "Imports" directives to handle the code generated by the given operations.

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)

Parameters

operations
IEnumerable<MigrationOperation>

The operations for which code is going to be generated.

Returns

An ordered list of namespace names.

Applies to