matthewrenze / clean-architecture-demo

A sample app for my online course "Clean Architecture: Patterns, Practices, and Principles" in .NET Framework 4.8
BSD 3-Clause "New" or "Revised" License
1.03k stars 483 forks source link

Database creation #8

Closed emeria-zz closed 4 years ago

emeria-zz commented 5 years ago

I am trying to run this solution, but getting database errors. Should I have SQL Express or LocalDb installed? Do I need to create the database prior to running, or should it be created on build/run?

Imgur

matthewrenze commented 5 years ago

Yes, you need to have SQL Express installed in order for Entity Framework to automatically create a database for the sample application.

emeria-zz commented 5 years ago

Thanks! My issue was that I created a named instance, so I had to change: Data Source=(local); To Data Source=(local)\SQLEXPRESS;