2
Entity Frameworkを使用すると、プロバイダSystem.Data.EntityClient
の接続文字列が自動的に作成されるようです。EntityFrameworkはプロバイダSystem.Data.SqlClientの標準接続文字列を使用できますか?
だから私は私の設定で同じデータベースに接続する2つの接続文字列で終わる:
<add connectionString="Server=S;Database=D;User ID=U;Password=P" name="DBConn" providerName="System.Data.SqlClient" />
<add connectionString="metadata=res://*/Entities.csdl|res://*/Entities.ssdl|res://*/Entities.msl;provider=System.Data.SqlClient;provider connection string="data source=S;initial catalog=D;user id=U;password=P;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" name="MyEntities" />
私の実体は最初、標準の接続文字列に接続する代わりに持つことにより、これらを統合する方法はありますSystem.Data.EntityClient
接続?