MigrationCodeGenerator.GetNamespaces 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得必須輸出為 「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>
將產生程式碼的作業。
傳回
命名空間名稱的已排序清單。