0% found this document useful (0 votes)
15 views2 pages

ASP Net MVC Crud Paths

This document outlines the CRUD operations in an ASP.NET MVC project for a Student Management System, detailing the flow from View to Controller to Database. It specifies the URLs, controllers, views, and database actions for each operation: Create, Read, Update, and Delete. Each operation is designed to manage student records effectively using Microsoft SQL Server.

Uploaded by

Al Farabi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

ASP Net MVC Crud Paths

This document outlines the CRUD operations in an ASP.NET MVC project for a Student Management System, detailing the flow from View to Controller to Database. It specifies the URLs, controllers, views, and database actions for each operation: Create, Read, Update, and Delete. Each operation is designed to manage student records effectively using Microsoft SQL Server.

Uploaded by

Al Farabi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ASP.

NET MVC CRUD Paths (Student Management


System Example)

This document explains the four CRUD (Create, Read, Update, Delete) paths in an [Link] MVC
project connected with Microsoft SQL Server. The example is based on a Student Management
System. Each CRUD process flows through the sequence: View → Controller → DbContext →
Database and back to View.

1. CREATE (Insert New Student)


- URL: /Students/Create
- Controller: [Link]()
- View: Views/Students/[Link]
- DB Action: _context.[Link](student) + SaveChanges()

2. READ (List / Details)


- URL: /Students/Index or /Students/Details/{id}
- Controller: [Link](), [Link](id)
- View: Views/Students/[Link], Views/Students/[Link]
- DB Action: _context.[Link](), _context.[Link](id)

3. UPDATE (Edit Student)


- URL: /Students/Edit/{id}
- Controller: [Link](id)
- View: Views/Students/[Link]
- DB Action: _context.Update(student) + SaveChanges()

4. DELETE (Remove Student)


- URL: /Students/Delete/{id}
- Controller: [Link](id), DeleteConfirmed(id)
- View: Views/Students/[Link]
- DB Action: _context.[Link](student) + SaveChanges()

You might also like