Is it possible to specify a relative path reference in connectionstring, attachDbFileName property in a web.config?
For example, In my database is located in the App_data folder, I can easily specify the AttachDBFilename as|DataDirectory|mydb.mdf and the |Datadirectory| will automatically resolve to the correct path.
Now, suppose that web.config file is located in A folder, but the database is located in BApp_data folder, where A and B folder is located in the same folder. Is there anyway to use relative path reference to resolve to the correct path?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…