MigrationsCodeGenerator.GetNamespaces Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework