Relative path inside app.config
Posted: Wed  15 Apr 2015 14:09
				
				Hello,
so far we have these line inside our app.config of our software
<connectionStrings><add name="ScrewDataContext" connectionString="metadata=res://*/ScrewDataModel.csdl|res://*/ScrewDataModel.ssdl|res://*/ScrewDataModel.msl;provider=Devart.Data.SQLite;provider connection string="data source=\\svtb24sd\Data\Software\Datenbank\Version1.0\database.db"" providerName="System.Data.EntityClient" /></connectionStrings>
What we want now is to change the data source to something like
"..\..\database.db"
instead of
"\\svtb24sd\Data\ ...."
Is this possible to use a relative path or does the provider need an absolute one.
Many thanks in advance,
Caipigott
			so far we have these line inside our app.config of our software
<connectionStrings><add name="ScrewDataContext" connectionString="metadata=res://*/ScrewDataModel.csdl|res://*/ScrewDataModel.ssdl|res://*/ScrewDataModel.msl;provider=Devart.Data.SQLite;provider connection string="data source=\\svtb24sd\Data\Software\Datenbank\Version1.0\database.db"" providerName="System.Data.EntityClient" /></connectionStrings>
What we want now is to change the data source to something like
"..\..\database.db"
instead of
"\\svtb24sd\Data\ ...."
Is this possible to use a relative path or does the provider need an absolute one.
Many thanks in advance,
Caipigott