Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am totly new in mvc,

i want to insert records in database using mvc with coding.

how to write database connection coding and insert records in database from controls.

how to insert textbox, dropdownlist,etc..controls values in database in MVC

please help me..
Posted

If you want to use MVC pattern for your databse project then mostly preferable to use is ORM(Object-relational mapping). And in currently Entity Framework is very popular ORM. But it supports MVC 3 and above version in .Net framework.

Please read this article first. This will give you basic idea about Entity Framework -

An Introduction to Entity Framework for Absolute Beginners
 
Share this answer
 

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