Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: LINQ Application
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 2-Apr-10 23:44pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

See here for a sample.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Marcin Kozub 310
1 OriginalGriff 248
2 Sergey Alexandrovich Kryukov 215
3 Richard MacCutchan 202
4 Praneet Nadkar 197
0 OriginalGriff 8,048
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 21 Mar 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100