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
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
您可以通过设置它来更改|DataDirectory|
指向的路径AppDomain.SetData
:
AppDomain.CurrentDomain.SetData("DataDirectory", myNewDataDirectory);