Click here to Skip to main content
15,888,302 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
i need same help regard LINQ to Sql.
i want to develop a web application in ASP.net 3.5 using LINQ to SQL.
In this application i want to work along 3 layers
- Presentation Layer
- DAL
- BLL
Please guide me how this layer can be built when we use LINQ to SQL.

Which file includes in DAL layer and how i can write BLL layer methods.

it would better if help me with some sample project with 3 layers.


----------------
Regards
Mohsin JK
Posted

Hi,

While using 3 layer/tier approach with LINQ, the suggestion would be to use LINQ data model in Data access layer. and write the LINQ To SQL methods in DAL.

From BLL make the call to get the data from DAL and pass it on to the UI Layer.

The twist remains, if you want to expose your BLL by using any service. Then you have to write an Translator service which converts business entities into Data Contracts and vice versa.


I Hope this helps!.

Regards,
-Vinayak
 
Share this answer
 
See here for a sample.
 
Share this answer
 
Hi,
i need same help regard LINQ to Sql.
i want to develop a web application in ASP.net 3.5 using LINQ to SQL.
In this application i want to work along 3 layers
- Presentation Layer
- DAL
- BLL
Please guide me how this layer can be built when we use LINQ to SQL.

Which file includes in DAL layer and how i can write BLL layer methods.

it would better if help me with some sample project with 3 layers.
 
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