0

EntityFramework 4.1 のSqlMigrations パッケージを試しており、このチュートリアルの手順に従っています。

残念ながらUpdate-Database仕事に行けません。それを呼び出すと、常に同じ例外が生成されます。

PM> Update-Database
No pending custom scripts found.
Ensuring database matches current model.
Update-Database : The type initializer for 'Microsoft.Data.Tools.Schema.Common.Diagnostics.EtwProvider' threw an exception.
At line:1 char:16
+ Update-Database <<<< 
    + CategoryInfo          : NotSpecified: (:) [Update-Database], TypeInitializationException
    + FullyQualifiedErrorId : System.TypeInitializationException,System.Data.Entity.Migrations.Commands.MigrateCommand

私はWindows XPを使用しています。XPがサポートされていない可能性はありますか?

ありがとう。

4

1 に答える 1

2

SqlMigrations は、要件に記載されているEntity Framework 4.1 Update 1に依存しています。

サポートされているオペレーティング システム: Windows 7、Windows Server 2003、Windows Server 2008、Windows Server 2008 R2、Windows Vista

そのため、Windows XP では動作しない可能性があります。特に ETW からエラーが発生した場合、問題はサポートされていない OS であることが予想されます。

于 2011-08-26T09:56:46.860 に答える