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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework