Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
How to access database SQl server with MVC? If I am not wrong then there are three ways to do that which are Entity Framework, ADO.NET and LINQ.

In addition to all these is there any other way?
And please let me know how to access database using LINQ,.. with any link or small example or any sort of document.
Your help would be highly appreciated
Posted
Comments
Maciej Los 20-Aug-15 17:08pm    
Does Google is out of service?
Linq to SQL is what your looking for.

If you want to use linq then use Entity Framework. There are already thousands of examples out there, just google for them.
 
Share this answer
 
Here is an example of complete crud operation using linq to sql using mvc

CRUD Operations Using LINQ to SQL in MVC
 
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