iloire / asp.net-mvc-example-invoicing-app

Example invoicing application in ASP.NET MVC3
224 stars 208 forks source link

How to include the Database for this app? #12

Open yuva2achieve opened 11 years ago

yuva2achieve commented 11 years ago

Dear,

You have developed application is so good. But I can't find the MSSql DB file or script file in the zip package. if you feel free kindly share the MSSQL DB. Then i can easily learn the ASP.NET MVC Application creation.

My Mail id : yuva2achieve@gmail.com Skype id : yuva2achieve

I

ameenmca commented 9 years ago

Hi,

This is a Code-First Migration, so Database will be created by some EF Powershell commands.

Follow this link for the creation of Database:

http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/migrations-and-deployment-with-the-entity-framework-in-an-asp-net-mvc-application

In above steps skip "Set up the Seed Method" and "Deploy to Windows Azure". Execute all the steps between these two steps.

Also the database will not be created unless you run this project. Login with "user" and "pass" even though they don't exist but it will execute DbContext which will trigger the Database creation.

Thanks, Amin Sayed

ghost commented 9 years ago

This is not working. Because missing Migration Folder

khoshnoudi commented 9 years ago

The Migration Folder will be create with First Code (http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/migrations-and-deployment-with-the-entity-framework-in-an-asp-net-mvc-application), But there is error for user name and password, I am VS 2013, Is there anybody that can give us advice to with full details to create database ?