共用方式為


AnnotationCodeGenerator.GetExtraNamespaces(IEnumerable<String>) 方法

定義

覆寫此方法可傳回其他命名空間,這些命名空間應該包含在針對 Scaffold 移轉產生的程式碼中。 預設實作會傳回空的列舉。

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)

參數

annotationNames
IEnumerable<String>

所產生程式碼中包含的批註名稱。

傳回

要包含的其他命名空間清單。

適用於