Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to insert,update,delete data in database in MVC architecture in asp.net
Posted
Updated 18-Jul-17 23:39pm
v2

This is a generic question, so I am going to give a generic answer. ASP.NET MVC has a number of ways to perform CRUD operations against a database. One of the easiest methods is to use Entity Framework. Without even writing code, you can hook up to your database and create your models. From there, you can use the scaffolding built into MVC to create the pages for you that do the CRUD operations.

Here is a great talk by ScottGu on using MVC4. Included in there is a demo of how to do CRUD operations: http://weblogs.asp.net/scottgu/archive/2012/02/19/asp-net-mvc-4-beta.aspx[^]
 
Share this answer
 
Here is an article for insert delete and update operations in MVC
http://www.c-sharpcorner.com/UploadFile/krishnasarala/select-insert-update-and-delete-with-Asp-Net-mvc[^]

This this..
 
Share this answer
 
v3
 
Share this answer
 
Comments
deepureddy18 1-Jun-12 7:59am    
check this link
CRUD(Create/Insert/Update/Delete) with Asp.net MVC Framework, ADO.Net Entity Data Model[^]
ridoy 2-Dec-13 7:02am    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900