EF を使用してリモート サーバー上のデータベースにアクセスできるようにする必要があります。app.config にリモート データベースへの接続文字列があります。
これを試すと:
using (var ctx = new PinnReportEntities("name=remoteConnection"))
{
.
.
.
}
私はこれを得る:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
名前付き接続は構成内にあり、有効であるため、問題は EntityClient プロバイダーにあるはずです。
私がやりたいことは可能ですか?これは正しい方法ですか?