Friday 24 May 2013

Movie DAtabase



Movie DAtabase
http://www.asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part8



Adding a Column to the Model

By |
This is a beginner tutorial that introduces the basics of ASP.NET MVC. You’ll create a simple web application that reads and writes from a database. Visit the ASP.NET MVC learning center to find other ASP.NET MVC tutorials and samples.
In this section we are going to walk through how we can make changes to the schema of our database, and handle the changes within our application.
Let's add a "Rating" Colum to the Movie table. Go back to the IDE and click the Database Explorer. Right click the Movie table and select Open Table Definition.
Add a "Rating" column as seen below. Since we don't have any Ratings now, the column can allow nulls. Click Save.
Editing Movies Table

No comments:

Post a Comment