0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

「EntityFramework.SqlServer' を読み込めませんでした」エラーの対策

Posted at

追加情報:不変名が 'System.Data.SqlClient' の ADO.NET プロバイダーのアプリケーション構成ファイルに登録された Entity Framework プロバイダー型 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' を読み込めませんでした。

使わないDLLはテストプロジェクトでは実行領域にコピーされないとのこと。
以下の基底クラスを作って、そこで使うようにした。

    [TestClass()]
    public class TestBase
    {

        public TestBase()
        {
            var instance = System.Data.Entity.SqlServer.SqlProviderServices.Instance;
        }

    }
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?