MigrationCodeGenerator.GetDefaultNamespaces(Boolean) Method

Definition

Gets the default namespaces that must be output as "using" or "Imports" directives for any code generated.

C#
protected virtual System.Collections.Generic.IEnumerable<string> GetDefaultNamespaces (bool designer = false);
C#
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected virtual System.Collections.Generic.IEnumerable<string> GetDefaultNamespaces (bool designer = false);

Parameters

designer
Boolean

A value indicating if this class is being generated for a code-behind file.

Returns

An ordered list of namespace names.

Attributes

Applies to

Produkt Versioner
Entity Framework 5.0.0, 6.2.0