I load data from sdf database in winforms App. I use full path to the database file . Example :
conn = new SqlCeConnection
{
ConnectionString ="Data Source=F:\My Documents\Project1\bin\Debug\Database.sdf"
};
I d like use a relative path to the database file. For example. I have sdf file in folder F:My DocumentsProject1inDebugDatafile.sdf and I want use relative path in connection string.
Any advice ? Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…