Dynamic Insert / Update / Delete with WebGrid in MVC3

Using only one action Index(). That is no need to create separate (Create,Edit,Delete)Views. I have created this application which insert/update/delete data into database and display it on webgrid. Create new mvc3 web application. In Models folder add new item select ‘Data’ > ‘ADO.NET Entity Data Model’ named as ‘Model1.edmx’ ‘Generate from database’ select database and… Read More Dynamic Insert / Update / Delete with WebGrid in MVC3

Populate dropdownlist from Database using EF in MVC3

Create new mvc3 web application. In Models folder add new item select ‘Data’ > ‘ADO.NET Entity Data Model’ named as ‘Model1.edmx’ ‘Generate from database’ select database and tables to create a connection string . It will add all tables into Model1.edmx file. Now we need to create DbContext for that open `Model1.edmx` right click select… Read More Populate dropdownlist from Database using EF in MVC3