Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just to clarify there are differences between the concept of <strong>LINQ</strong> and <strong>LINQ to SQL</strong>.</p> <p>LINQ is a query <em>syntax</em>, not a language or an O/RM. You can build an O/RM on top of the syntax provided by LINQ.</p> <p>Since I gather that your question is really <em>When to use LINQ to SQL</em> I'll just address that.</p> <p>LINQ to SQL is best used when you are:</p> <ul> <li>Only ever targeting MS SQL 2000+</li> <li>Doing RAD</li> </ul> <p>I've used LINQ to SQL on a couple of commercial products and quite a few of my own products and found these benefits:</p> <ul> <li>Familiar language to code in (C#/ VB.NET)</li> <li>Easier to maintain (we have more .NET than SQL gurus on staff)</li> <li>SQL generated is well structured and very optimal</li> <li>Allows direct translation of business rules to SQL while still keeping all business logic in a single project</li> </ul> <p>As for <em>LINQ</em> as a concept I use it all the time, <em>because I understand what it can/can't do and how to use it properly</em>. Like any language feature it can be miss-used easily if people don't have an understanding of what it is and how to use it. I recommend the following blogs to get some of the concepts of LINQ down:</p> <ul> <li><a href="http://blogs.bartdesmet.net/bart/" rel="nofollow noreferrer">Bart De Smet</a> - advanced</li> <li><a href="http://blogs.msdn.com/charlie/default.aspx" rel="nofollow noreferrer">Charlie Calvert</a></li> <li><a href="http://blogs.msdn.com/wriju/default.aspx" rel="nofollow noreferrer">Wriju</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload