Entity Framework 6.0中的MetadataWorkspaceExtensions.GetDbProviderManifest

时间:2015-01-09 22:11:48

标签: entity-framework entity-framework-5 entity-framework-6

在EF 5中,有一个名为GenerateEDM.Utility.ttinclude的T4实用程序模板,它以以下代码开头:

internal DbProviderManifest GetDbProviderManifest(string providerInvariantName, string providerManifestToken)
{
    DbProviderManifest providerManifest = null;
    try
    {
        providerManifest = MetadataWorkspaceExtensions.GetDbProviderManifest(providerInvariantName, providerManifestToken);
    }

现在我正在为EF6重写一些EF5代码生成模板,但我找不到方法MetadataWorkspaceExtensions.GetDbProviderManifest

此方法在Entity Framework 6.0中移至何处?

0 个答案:

没有答案