Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to write connection string in app.config file in c# and database is SqLite?
I also want to make that connection string drive indepedent.

What I have tried:

I know to how to add simple connection string but don't know how to make it drive independent in App.config file
Posted
Updated 2-Nov-16 1:54am
v2
Comments
F-ES Sitecore 2-Nov-16 5:13am    
What do you mean by drive independent? It needs to know where the database file is, if the issues is that the file is in different locations\drives on different environments then handle that via config file transformations such that each environment gets a config file specific to it.

1 solution

0) Really? You're so lazy that you can't type "sql lite connectionstring" in a google search?

1) To find out how to build a connection string for pretty much any database, go to http://www.connectionstrings.com
 
Share this answer
 
Comments
Roshan U 3-Nov-16 0:48am    
firstly you didn't got my question, secondly i am not lazy, thank you for the comment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900