Thursday, 21 February 2013

How to Create Model in MVC

Hi All,

Today I'll learn how I can create Model in MVC(Model-View-Controller).

If you want to learn how to create vew in MVC  click here

http://mvcdesignpattern.blogspot.in/2013/02/how-we-can-create-view-in-razor-syntax.html

Step 1.  Open visual studio

Step 2. File > New > Project as show in below screen..




Step 3. Select ASP.NET MVC 3 Web Application as show in below screen .



Step 4. After select Asp.net MVC 3 Web application put project name and select location where you want to save that project. after click on ok button show you project as like below screen.



Step 5. Select empty temple and view engine you can select RAZOR or ASPX. Click on ok. show as like below screen




Final step for create mode in mvc..



Right click on model folder and add a class for mode as show in below screen




Enjoy for learn MVC

No comments:

Post a Comment