473,385 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

LINQ vs 3-tier vs binding

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

Thanks,
Dean S
Feb 20 '08 #1
3 2775
Dean Slindee wrote:
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.
Feb 20 '08 #2
Dean,
I'm confused. After all these years of promoting 3-tier architecture,

Who did that. In my idea not Microsoft, there seems to be a large group who
want all kind of retro architecture and Microsoft sells seldom no.

Cor

Feb 20 '08 #3
"Dean Slindee" <sl*****@charter.netwrote in
news:58**********************************@microsof t.com:
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?
Linq can be used for client side sorting without a roundtrip back to the
server. It's compatible with a 3-tier achitecture.

As for stored procedures, that's a personal preference. Sometimes it's
better not to use SPs because all SQL is contained within your application
and there is less depedencies to deploy. If you use an OR/M tool SPs are
often redundant especially for CRUD type functions.

--
sp**********@rogers.com (Do not e-mail)
Feb 20 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave Johnson | last post by:
Greetings, i want to be able to use linq new technology with sql server. the senario i am not able to do so far is as follow: 1- i program with linq 2- be able to generate and manipulate...
7
by: Chris | last post by:
I am a little confused. I have been reading about LINQ and it seems to imply LINQ is available in C# 3 but not in Visual Studio until the next release. I am a VB.net programmer but would still like...
4
by: cj | last post by:
Can I use LINQ in VB .Net 2008 to get to a Visual FoxPro Table? I've seen demos of it with SQL Server but they've used it with a server browser and I don't think that'd work when I need to see VFP...
9
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
Hi all: after reading different places/sites about linq... I ran into these questions: 1. What framework do we need to run linq ? (does it depend on what version of visual studio we have?) how...
0
by: =?Utf-8?B?SHlwZXJjb2Rlcg==?= | last post by:
I'm encountering some strange behavior after deploying a ASP.net 3.5 website to production, i'm unable to reproduce these in my dev environment. This error seems to occur very randomly but it's...
4
by: =?Utf-8?B?RXJpYyBGYWxza2Vu?= | last post by:
We’re storing our main entity in an insert only table which stores the history of past revisions, but we’re facing problems with storing this history as LINQ will only update the entity, and...
14
by: thj | last post by:
Hi, I was wondering what you guys are using and why? LINQ to SQL or NHibernate? Thanks in advance, Tommy
3
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
I'm attempting to use LINQ to insert a record into a child table and I'm receiving a "Specified cast is not valid" error that has something to do w/ the keys involved. The stack trace is: ...
4
by: George | last post by:
I am a bit conservative type and usually give some time for technology to mature before starting to try it. Today my question is Linq. To start using it or not. So here is the voting questions....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.