2

How I can get relative path for ConnectionSetting Web.config in my web site

When DataBase Not inside the App_Data Folder

I try to use This

~/dataBase/mydatabase.mdf..................

But not Work

any help please

4

1 回答 1

0

您可以通过设置它来更改|DataDirectory|指向的路径AppDomain.SetData

AppDomain.CurrentDomain.SetData("DataDirectory", myNewDataDirectory);
于 2012-06-03T00:35:22.030 回答