Download presentation
Presentation is loading. Please wait.
Published byAlbert Jääskeläinen Modified over 5 years ago
1
ASP.net MVC Model Haiming Chen Department of Computer Science
Data operation ASP.net MVC Model Haiming Chen Department of Computer Science Ningbo University Fall Semester , Course 106F22A01 User interface User interaction logic
2
Define a class in Models
Use the class to create objects in a Controller Use ViewBag to share data with Views or Use View() function to share data with Views In the beginning of view: @model <data_type> In the body of view: Model
3
Course Project Employee Management Course Management Movie Management
ID(int), Name(string), Salary (float), Company(string) Course Management ID(int), Name(string), Teacher (string), Number-of- students (int) Movie Management ID(int), Title (string), Director (string), Ticket-price (float)
4
Project report Project requirement analysis Model design View design
Your_name.RAR .doc Project requirement analysis Model design View design Controller design Result /Models/*.cs /Views/Home/*.cshtml /Controller/*.cs Delivery your report with source code files together, before 23:59 June 21 (next Wednesday) to my (chenhaiming.nbu.edu.cn). If one/two day later, your score will be reduce by 10/15 points.
5
Quiz In ASP.net MVC, what does M mean?
How to share data between controller and view? How to get input from the submitted form? How to write data to a data file? How to map a virtual path to physical path in model file?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.