次の方法で共有


AnnotationCodeGenerator.GetExtraNamespaces メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

スキャフォールディングされた移行のために生成されたコードに含まれる必要がある追加の名前空間を返します。 既定の実装は空の列挙を返します。

名前空間:  System.Data.Entity.Infrastructure.Annotations
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public Overridable Function GetExtraNamespaces ( _
    annotationNames As IEnumerable(Of String) _
) As IEnumerable(Of String)
'使用
Dim instance As AnnotationCodeGenerator 
Dim annotationNames As IEnumerable(Of String)
Dim returnValue As IEnumerable(Of String)

returnValue = instance.GetExtraNamespaces(annotationNames)
public virtual IEnumerable<string> GetExtraNamespaces(
    IEnumerable<string> annotationNames
)
public:
virtual IEnumerable<String^>^ GetExtraNamespaces(
    IEnumerable<String^>^ annotationNames
)
abstract GetExtraNamespaces : 
        annotationNames:IEnumerable<string> -> IEnumerable<string> 
override GetExtraNamespaces : 
        annotationNames:IEnumerable<string> -> IEnumerable<string> 
public function GetExtraNamespaces(
    annotationNames : IEnumerable<String>
) : IEnumerable<String>

パラメーター

戻り値

型 : System.Collections.Generic.IEnumerable<String>
含める追加の名前空間の一覧。

参照

参照

AnnotationCodeGenerator クラス

System.Data.Entity.Infrastructure.Annotations 名前空間