S
Steve Gerrard
Dean said:I'm confused. After all these years of promoting 3-tier
architecture, isn't LINQ moving us back to a 2-tier architecture (no
stored procedures?). Are there scenarios where LINQ would be a better
architecture than a
"legacy" 3-tier?
Another question, concerning binding: Would LINQ be used in addition
to binding, instead of binding, or coexist within an application?
Not inferring any bias with the above, just curious...
None with the reply, either.
My view is that some activities are better done on the client, without a round
trip to a server. This depends on how much data you grab in the first place, but
if is a fair amount - perhaps a master record with 200 records in various detail
tables, for instance - it can be useful to create things like a grouping with
totals on the fly, rather than playing ping pong with a server. I would keep the
serious stuff on the server, but do smaller ad hoc things on the client. Also,
LINQ can work on things besides dataviews, which may be handy. As for binding,
you can bind to whatever you like, so you can make a new table, use LINQ or an
old fashioned loop to fill it, and then bind that to a grid or whatever.
So yes to all three, I say.