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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework