共用方式為


MigrationCodeGenerator.GetNamespaces 方法

定義

取得必須輸出為 「using」 或 「Imports」 指示詞的命名空間,以處理指定作業所產生的程式碼。

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

參數

operations
IEnumerable<MigrationOperation>

將產生程式碼的作業。

傳回

命名空間名稱的已排序清單。

適用於