[Looking for opinions, links, articles and so on]
How do you implement LINQ to SQL in a classic 3-tiers (presentation, BAL, DAL) app? A simple question, right?
So, if I create my LINQ to SQL DataAccess classes in a DAL, this is where the transport objects will reside. I usually create a layer just for that so each layer can reference those objects. Now, the presentation layer must reference the DAL directly. Yuck!
OK, so let's return POCOs to the presentation layer instead. Well, I'm losing all the change tracking stuff provided by LINQ to SQL. Yuck!
What if I need to expose my BAL layer as a set of WCF services? Well, I'm also losing the change tracking. Yuck!
And what if I want to data bind my grid? Using the designer, I need to point to the DataClasses sitting in the DAL. Yuck!
OK, I'll lose the change tracking stuff. Now I'll have to reload each record before saving it? Yuck!
The way I see it, the only way you can possibly use LINQ to SQL is if you develop your app in a single layer. I must be wrong. I must miss something. This can't be real. Stunned!
Remember Me
Theme design by Jelle Druyts
Powered by: newtelligence dasBlog 2.1.8102.813
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. Since I'm self employed, this mean that these do not represent my own opinions. Gee, go figure!No chipmunks were harmed while coding, deploying and configuring this blog...well, maybe a little bit but not that much. Hey, some of them even enjoyed it. Crazy chipmunks ;-)
Warning: While reading this blog, do not operate heavy machinery, never use a lit match or open flame to check fuel level, don�t try to dry yourself in a microwave oven, do not play in the dishwasher, do not use this blog in any function that involves insertion into a body cavity. Reading in conjunction with alcohol or sedatives may cause drowsiness. May irritate eyes. Use before the expiration date. If you do not understand, or cannot read all directions, cautions and warnings, do not read this blog. Warning - Contents may be hot and under pressure. May blow off causing eye or other serious injury. Point away from face and people, especially while reading. Suitable for vegetarians. This is not a dating agency. Not to be used for anything else. Reading this blog does not enable you to fly. CAUTION: Risk of electric shock - Dot not open. Do not use as an ice cream topping. Not for intimate hygiene.
© Copyright 2008, Guy Barrette
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
E-mail