From the MSDN Smart Client Data Blog :
In this version, the .NET runtime has added support for what we call a DataDirectory Macro. This allows Visual Studio to put a special variable in the connection string, which will expand at runtime ...
By default | DataDirectory | the variable will be expanded as follows:
- , , (.exe).
- , ClickOnce, ClickOnce
- - App_Dataββli >
| DataDirectory | . , :
AppDomain.CurrentDomain.SetData("DataDirectory", newpath)