Share via


MigrationsCodeGenerator.GetNamespaces Method

Definition

Overloads

GetNamespaces(IModel)

Gets the namespaces required for an IModel.

GetNamespaces(IEnumerable<MigrationOperation>)

Gets the namespaces required for a list of MigrationOperation objects.

GetNamespaces(IModel)

Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs

Gets the namespaces required for an IModel.

protected virtual System.Collections.Generic.IEnumerable<string> GetNamespaces (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member GetNamespaces : Microsoft.EntityFrameworkCore.Metadata.IModel -> seq<string>
override this.GetNamespaces : Microsoft.EntityFrameworkCore.Metadata.IModel -> seq<string>
Protected Overridable Function GetNamespaces (model As IModel) As IEnumerable(Of String)

Parameters

model
IModel

The model.

Returns

The namespaces.

Applies to

GetNamespaces(IEnumerable<MigrationOperation>)

Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs
Source:
MigrationsCodeGenerator.cs

Gets the namespaces required for a list of MigrationOperation objects.

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

Parameters

operations
IEnumerable<MigrationOperation>

The operations.

Returns

The namespaces.

Applies to