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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework