How to use LINQ in traditional n layer code pattern

I am pretty impressed with the LINQ technology. And now that I am going to start a new ASP .Net Project I was wondering how to use linq to implement a traditional DAL & BLL layers.

Will the linq data context and conceptual model go as a part of DAL or BLL or is it just common rather?

Many thanks

Anubhav

[315 byte] By [AnubhavG] at [2007-12-24]
# 1
LINQ to SQLis the Data Access Layer in my opinion, so the LINQ data context should be part of the business layer. In effect you can dump the DAL entirely, other than for things that aren't possible with LINQ to SQL.

There are three problems with putting LINQ to SQL in your DAL:

1. Ratio of plumbing code to real code starts to get a bit high.
2. Incorporating business logic within your projections breaks the abstraction.
3. Objects returned by the DAL support lazy fetching, making mockery of your division.

Joe

JoeAlbahari at 2007-10-7 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...

Visual Studio Orcas

Site Classified