Udostępnij przez


MigrationCodeGenerator.GetNamespaces Metoda

Definicja

Pobiera przestrzenie nazw, które muszą być wyjściowe jako dyrektywy "using" lub "Import" w celu obsługi kodu wygenerowanego przez daną operację.

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)

Parametry

operations
IEnumerable<MigrationOperation>

Operacje, dla których zostanie wygenerowany kod.

Zwraca

Uporządkowana lista nazw przestrzeni nazw.

Dotyczy