AnnotationCodeGenerator.GetExtraNamespaces(IEnumerable<String>) 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.
Override this method to return additional namespaces that should be included in the code generated for the scaffolded migration. The default implementation returns an empty enumeration.
public virtual System.Collections.Generic.IEnumerable<string> GetExtraNamespaces (System.Collections.Generic.IEnumerable<string> annotationNames);
abstract member GetExtraNamespaces : seq<string> -> seq<string>
override this.GetExtraNamespaces : seq<string> -> seq<string>
Public Overridable Function GetExtraNamespaces (annotationNames As IEnumerable(Of String)) As IEnumerable(Of String)
Parameters
- annotationNames
- IEnumerable<String>
The names of the annotations that are being included in the generated code.
Returns
A list of additional namespaces to include.
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