I am working in Visual Web Developer 2010 Express, and using the Entity Framework Code First CTP. I am able to do this with the new SQL CE but I am unable to find a connection string to work with SQL Express.
This one, using the SQL CE beta, works fine (database is created and recreated on model changes).
<add name="TrempimModel"
connectionString="data source=|DataDirectory|TrempimModel.sdf"
providerName="System.Data.SqlServerCe.4.0" />
this one , which I copied from the aspnetdb conections string,
<add name="TrempimModel"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;
AttachDBFilename=|DataDirectory|TrempimModel.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
Gives the following message on startup: Unable to complete operation. The supplied SqlConnection does not specify an initial catalog.
So how to make it work with SQL Express?