MigrationsCodeGenerator.GetNamespaces 方法

定义

重载

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>

操作。

返回

命名空间。

适用于