Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am able to view database records in
MVC - ASP.Net application using ADO.NET Entity Data Model. My concern is, is there any other way to connect with database without using ADO.NET Entity Data Model(.edmx file)/LINQ to SQL(.dbml)
Like layer approach?(DAL)

Please reply.

-
YRishi
Posted
Updated 7-Feb-12 20:09pm
v2

yes there is other way you can use Linq to Sql
Clink this link below

LINQ to SQL: Advanced Concepts and Features[^]
 
Share this answer
 
Yes, you can use anything you want!

MVC doesn't limit you to the type of data access strategy you can use, MVC and data access are two completely separate things.

You could create another project that performs all your data access (DAL), reference that from your MVC web project and away you go. Within your DAL, you could just define SqlConnection objects or whatever you like, the choice is yours!
 
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