I'm trying to run existing WCF service as a stateful reliable service. The WCF service uses EF4's object context API that requires connection string in the form of
<connectionStrings>
<add name="myEntities" connectionString="metadata=res://*/MyEntities.csdl|res://*/MyEntities.ssdl|res://*/MyEntities.msl;provider=System.Data.SqlClient;provider connection string="Data Source=My-PC;Initial Catalog=MyDatabase;User=sa;Password=password;Integrated Security=false"" providerName="System.Data.SqlClient" />
</connectionStrings>
Previously the service could easily find this connection string from config file by referencing to its name. Now in Service Fabric I have to specify any custom configuration in Settings.xml file under Config folder of my package that only seems to support key values like this:
<Section Name="ConnectionStrings">
<Parameter Name="Entities" Value="metadata=res://*/MyEntities.csdl|res://*/MyEntities.ssdl|res://*/MyEntities.msl;provider=System.Data.SqlClient;provider connection string="Data Source=My-PC;Initial Catalog=MyDatabase;User=sa;Password=password;Integrated Security=false""/>
</Section>
How do I specify the provider name here?