Wednesday, 27 November 2013

Insert Data in MVC using and DAO class

Insert Data in MVC using and  DAO class

In this article I am going to explain, how we can insert data using DAO class in MVC. In this example I am using,  later on I will use Entity Framework. In this article I will use Request object to fetch data from view to controller. If you are not aware with Request object kindly first click here.

I have created the following table in Database for this example:-

create table stu_record(id int primary key identity(1,1) , fname varchar(100),
lname varchar(100), course varchar(100), fees int, doj datetime)

No comments:

Post a Comment