Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
How to insert,update,delete data in database in MVC architecture in asp.net
Posted 1-Jun-12 1:18am
Edited 1-Jun-12 2:00am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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..
  Permalink  
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Comments
deepureddy18 at 1-Jun-12 7:59am
   
check this link
CRUD(Create/Insert/Update/Delete) with Asp.net MVC Framework, ADO.Net Entity Data Model[^]
ridoy at 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)

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 1 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100