I want to create a single connectionString in my Web.config and then reuse it in the "provider connection string" attribute of all module declarations.
example: Declare a connection string this way:
<add name="MyConnectionString" connectionString="Data Source=.;Initial Catalog=MyDB;User ID=username;Password=pwd;" />
and then exchange this connection between the modules:
<add name="Module1Context" connectionString="metadata=res//*/Module1.csdl| ... | ...;provider=System.Data.SqlClient;provider connection string=MyConnectionString" providerName="System.Data.EntityClient" />
Is it possible?
source share