接続文字列をエンティティオブジェクトコンストラクターに渡す必要があります(構成に保存できません)。
EntityConnectionStringBuilderを使用してデータベースに接続できましたが、追加できないためproviderName="System.Data.EntityClient"
(プロバイダープロパティ> provider="System.Data.SqlClient
"のみ)、データベースを更新できないと考えています。
これを文字列ビルダーからの接続文字列と一緒にコンストラクターに渡すにはどうすればよいですか。
私の接続文字列は基本的にこれと同じです
connectionString="metadata=.\AdventureWorks.csdl|.\AdventureWorks.ssdl|.\AdventureWorks.msl;
provider=System.Data.SqlClient;provider connection string='Data Source=localhost;
Initial Catalog=AdventureWorks;Integrated Security=True;Connection Timeout=60;
multipleactiveresultsets=true'" providerName="System.Data.EntityClient"