MigrationsCodeGenerator.GetNamespaces 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetNamespaces(IModel) |
获取 所需的 IModel命名空间。 |
GetNamespaces(IEnumerable<MigrationOperation>) |
获取对象列表 MigrationOperation 所需的命名空间。 |
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
获取 所需的 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)
参数
- model
- IModel
模型。
返回
命名空间。
适用于
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
获取对象列表 MigrationOperation 所需的命名空间。
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)
参数
- operations
- IEnumerable<MigrationOperation>
操作。
返回
命名空间。