RyannosaurusRex/Shoelace-MVC

SQL Scripts

Closed this issue · 2 comments

Hi, please. Where is the sql script for ShoelaceMVC-SaaS-Multitenant ?
I add new database. Connection string and this is result. "Invalid object name 'dbo.Accounts'." Thank you.

There actually aren't any scripts. ShoelaceMVC uses Entity Framework Code-First, so the data models and data context in the project can actually generate a script or automatically create a database. When you open the ShoelaceMVC-SaaS-Multitenant project, open up the Package Manager Console window and type "Update-Database". It's a little different than the traditional way of keeping SQL scripts up to date. You can read more about it here. -> http://msdn.microsoft.com/en-US/data/jj591621

Thank you. It works.