ClickOnce deployments split application files into Include or Data File. You can specify that each file is in Visual Studio by going to the "Project Properties", "Publish" page, and then clicking on the "Application Files ..." button. You can then install your .sdf file in the “Data File” in the “Publish Status” column.
The data files downloaded by ClickOnce are then placed in a separate directory for each new version.
, , .
, ClickOnce. , " ClickOnce" " ".
SQL Server CE, , , :
<add
name="MyApplication.Properties.Settings.LocalCacheConnectionString"
connectionString="Data Source=|DataDirectory|\LocalCache.sdf"
providerName="Microsoft.SqlServerCe.Client.3.5" />
"| DataDirectory |" , SQL CE SQL Express .