0

I want to use code first with SQL Server CE but after run update-database command database file not created. But console show run successfully. this is my connection string:

<add name="AdminTools" providerName="System.Data.SqlServerCe.4.0" connectionString="Data Source=|DataDirectory|\AdminTools.sdf" />

please help

4
  • Are you seeding the database? Using something like this stackoverflow.com/questions/5655841/… Commented Jan 2, 2014 at 15:18
  • Yes I seed database and in console print that database create successfully and seeding is OK but I don't see database file. Commented Jan 2, 2014 at 15:21
  • Strange because it should exist on the App_Data folder. Commented Jan 2, 2014 at 16:12
  • This is windows library project. I search for AdminTools.sdf in bin and entire solution folder but I don't see database file. Commented Jan 2, 2014 at 16:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.