Search code examples
deploymentclickoncelocaldb

WPF using LocalDB doesn't deploy correctly


I've written a program that uses Code First with LocalDB to store data. After using Click Once to deploy, the application doesn't create the LocalDB in production. I've tried all of the Database Initializers, and the app just errors out saying that no tables actually exist.

I'm assuming that there is something simple that I'm missing, but all the articles I find seem to refer to using SQL Express.

Edit

May be related to EF 6.1.1. I've tried downgrading to 5 and it appears to be working, but I'm not done testing yet.


Solution

  • Downgrading EF from 6.1.1 to 5.0.0 has resolved this issue. I can only assume that this is a bug in 6.1.1.