I am using Entity Framework 4 in a desktop application with SQL Compact. I want to use a private installation of SQL Compact with my application, so that my install
I figured out how to do it, thanks to a blog post by Steve Lasker. Basically, here is what you have to do:
(1) Set a reference to System.Data.SqlServerCe.dll in your project. Set the CopyLocal property to True.
(2) In the App.config for your project, add the following XML markup. It tells EntityFramework to look to your private installation of SQL Compact for its data provider:
(3) In the Setup project, add the following files to the Application Folder in the File System Editor: