Connecting Tech Pros Worldwide Forums | Help | Site Map

relative path & data source configuration

Eric
Guest
 
Posts: n/a
#1: Jul 23 '08
How can I set this property so it works easily both with my unit tests &
DAL, as well as on another machine with the same relative directory? My
current app.config is below:

Please let me know if there is a more appropriate forum to post this to (I
posted this to Sql.Ce a dew days ago also).

Thanks!
-------
<configuration>
<configSections>
<section name="dataConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Data.C onfiguration.DatabaseSettings,
Microsoft.Practices.EnterpriseLibrary.Data"/>
</configSections>
<dataConfiguration defaultDatabase="SqlCeDb"/>
<connectionStrings>
<add name="SqlCeDb"
connectionString="Data Source=C:\Documents and
Settings\berrylHesh\My Documents\Visual Studio
2008\Projects\MySqlCeProject\src\Core\Data\SqlCeDb \SqlCeDb.sdf"
providerName="System.Data.SqlServerCe.3.5" />
</connectionStrings>
</configuration>



Closed Thread


Similar C# / C Sharp bytes