MigrationCodeGenerator.GetDefaultNamespaces(Boolean) Method
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 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);
abstract member GetDefaultNamespaces : bool -> seq<string>
override this.GetDefaultNamespaces : bool -> seq<string>
Protected Overridable Function GetDefaultNamespaces (Optional designer As Boolean = false) As IEnumerable(Of String)
- designer
- Boolean
A value indicating if this class is being generated for a code-behind file.
An ordered list of namespace names.
- Attributes
Produkt | Versioner |
---|---|
Entity Framework | 5.0.0, 6.2.0 |
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.
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: