MigrationCodeGenerator.GetNamespaces Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the namespaces that must be output as "using" or "Imports" directives to handle the code generated by the given operations.
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)
Parameters
- operations
- IEnumerable<MigrationOperation>
The operations for which code is going to be generated.
Returns
An ordered list of namespace names.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework