Results 1 to 3 of 3

Thread: LINQ: Pros and Cons

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    LINQ: Pros and Cons

    Hi,

    I'm shifting to MVC and I noticed that LINQ is heavily promoted on books and sample apps. There's plenty of disclaimers that LINQ and MVC are not joined on the hip.

    I want to ask this question because I want to keep an open mind. How many of you think that LINQ "clutter" up the language? It actually benefits me because I've been using SQL forever. However, MS could have implemented the "SQL" features through an object model.

    Please feel free to expand on this thread as you see fit.

    Thanks,

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: LINQ: Pros and Cons

    I don't think LINQ clutters up anything. Been using it for a while now at work, and in a lot of cases, it's cleaned up our code. It's reduced the amount of code, and in some cases, not only does it run faster, but it's now more obvious as to what the code does. Having said that, we use ourt LINQ excusivled against objects, we do not use it for retrieving data from the database or anything. Our architecture wouldn't allow for it. Also, while there are some places where we used the query syntax, the preference is towards the functional syntax.

    As for the object model, that's where Entity Framework comes in. I haven't had the chance to work with it, but from what I hear, it's the next layer in objectfying databses.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: LINQ: Pros and Cons

    Hey,

    In terms of LINQ to SQL, it was my understanding that going forward, the preference would be to use the Entity Framework.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width