私はMySQLデータベースのための既存のモデルを持っています。私はデータベースに新しいテーブルを追加しましたが、今はモデルを更新したいと思います。私はモデルブラウザで右クリックして、データベースからのモデルの更新を選択した場合でも...私はメッセージ次取得Visual Web Developer 2010 Expressのデータベースからモデルを更新する方法は?
:
An exception of type 'Microsoft.VSDesigner.Data.Local.ConnectionStringConverterServiceException' occurred while attempting to update from the database. The exception message is: ''.
アプリケーションは、モデルを既存とうまく動作します。つまり、必要なときにデータが正常にフェッチされるということです。
モデルを更新すると何が問題になるでしょうか?それはExpress版のためですか?どうすれば問題を解決できますか?
UPDATE:あなたはmachine.configファイルでプロバイダを登録する必要が
<connectionStrings>
<add name="OtherDbDataContext" connectionString="metadata=res://*/DataAccess.EF.OtherDb.csdl|res://*/DataAccess.EF.OtherDb.ssdl|res://*/DataAccess.EF.OtherDb.msl;provider=MySql.Data.MySqlClient;provider connection string="User Id=id;Password=password;Host=localhost;Database=otherdb;Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0;Persist Security Info=True"" providerName="System.Data.EntityClient" />
<add name="DbDataContext" connectionString="server=localhost;User Id=id;password=password;Persist Security Info=True;database=db" providerName="MySql.Data.MySqlClient" />
<add name="DbDataConnectionString" connectionString="server=localhost;User Id=id;password=password;Persist Security Info=True;database=db" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
ありがとうございます。スタジオのフルバージョンでチェックしただけで、すべてが魅力的でした。 – Bobrovsky