<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Converting SQL to LINQ, Part 1: The Basics (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx</link><description>As you may already know, VB LINQ statements enable SQL-like syntax for queries in the VB language. LINQ syntax doesn't match SQL syntax exactly, so if you are already working with SQL or familiar with SQL queries, you may find yourself wanting to convert</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; Converting SQL to LINQ, Part 1: The Basics (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6409213</link><pubDate>Mon, 19 Nov 2007 23:10:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6409213</guid><dc:creator>MSDN Blog Postings  » Converting SQL to LINQ, Part 1: The Basics (Bill Horst)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst-2/"&gt;http://msdnrss.thecoderblogs.com/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst-2/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 1: The Basics (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6430689</link><pubDate>Tue, 20 Nov 2007 15:13:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6430689</guid><dc:creator>Csaba </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for this comment. I understand that you want me understand this. But, Unfortunatly is excellent example of minimal code that is hard to understand! (Or not understandable at all for me.)&lt;/p&gt;
&lt;p&gt;I just cant understand minimal variiations of names like cust Customer Customers when the variations doen't make sense. (Customers is pluralis of Customer for me, then it should be an array or collction of Customers. Not different entities. It goes around in my head.&lt;/p&gt;
&lt;p&gt;Should:&lt;/p&gt;
&lt;p&gt;&amp;quot;The SQL code examples I'll be using assume a table called Customers and a table called Orders. &amp;nbsp;The VB code examples assume some object named Customers with type IEnumerable(Of Customer) and another object named Orders with type IEnumerable(Of Order). &amp;nbsp;I'll also use two classes, Customer and Order, which are defined below.&amp;quot;&lt;/p&gt;
&lt;p&gt;Maybe instead be:&lt;/p&gt;
&lt;p&gt;The SQL code examples I'll be using assume a table called CustomerSQTable (singularis) and a table called OrderSQLTable (singularis). &amp;nbsp;The VB code examples assume some object named anCustomer (singularis?) with type IEnumerable(Of CustomerClass) and another object named anOrder with type IEnumerable(Of OrderClass). &amp;nbsp;I'll also use two classes, CustomerClass and OrderClass, which are defined below.&amp;quot;&lt;/p&gt;
&lt;p&gt;And then:&lt;/p&gt;
&lt;p&gt;&amp;quot;From cust In Customers _&lt;/p&gt;
&lt;p&gt;Select CustomerName = cust.Name, ID = cust.CustomerID _&lt;/p&gt;
&lt;p&gt;Order By ID&amp;quot;&lt;/p&gt;
&lt;p&gt;Should be rewritten as:&lt;/p&gt;
&lt;p&gt;Ehh, well what???&lt;/p&gt;
&lt;p&gt;I don't know, someone who has a clear understanding how to name it so it is understandable for me?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Csaba&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 1: The Basics (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6456204</link><pubDate>Wed, 21 Nov 2007 17:37:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6456204</guid><dc:creator>Rip Dallas</dc:creator><description>&lt;p&gt;I agree the example is not very good. &amp;nbsp;I get tired of people posting code that demonstrates some technique but that ends up teaching other bad programming techniques. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, both classes have been modeled after a relational database and this is teaching poor design. &amp;nbsp;The Order class should not contain a customerId. &amp;nbsp;Foreign keys are a concept of a relational database not object oriented design. &amp;nbsp;Instead the example should have included a property on customers defined as a collection of Order objects.&lt;/p&gt;
&lt;p&gt;Please use good examples when trying to teach new concepts.&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 1: The Basics (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6457565</link><pubDate>Wed, 21 Nov 2007 19:46:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6457565</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;Sorry for any confusion over the code I provided.&lt;/p&gt;
&lt;p&gt;First, regarding RDB vs OOP concepts, this series of posts is intended to show how someone with existing SQL code could migrate to LINQ easily. &amp;nbsp;Someone actually performing this sort of task would probably be using a database and our LINQ-to-SQL feature, but I made my code examples to use &amp;quot;In-Memory&amp;quot; objects for simplicity. &amp;nbsp;I tried to model my objects after the Northwind database, since this is something a lot of people would already be familiar with.&lt;/p&gt;
&lt;p&gt;Csaba, I want to make sure this is understandable to you. &amp;nbsp;It may start to make more sense after my next post. &amp;nbsp;If not, please let me know and I'll try to adjust the names to be more clear.&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6656774</link><pubDate>Tue, 04 Dec 2007 22:14:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6656774</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6656795</link><pubDate>Tue, 04 Dec 2007 22:17:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6656795</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read Converting SQL to LINQ, Part 1: The Basics . I’ve made the following name&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6656876</link><pubDate>Tue, 04 Dec 2007 22:23:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6656876</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Aprendiendo LINQ para Visual Basic 2008</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6662736</link><pubDate>Wed, 05 Dec 2007 09:16:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6662736</guid><dc:creator>Jorge Serrano - MVP Visual Developer - Visual Basic</dc:creator><description>&lt;p&gt;Si quieres aprender LINQ para Visual Basic 2008, quiz&amp;#225;s te interesen los siguientes art&amp;#237;culos que el&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 4: Functions (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6749619</link><pubDate>Wed, 12 Dec 2007 21:35:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6749619</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 5: GROUP BY and HAVING (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6800695</link><pubDate>Wed, 19 Dec 2007 03:08:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6800695</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 5: GROUP BY and HAVING (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6801087</link><pubDate>Wed, 19 Dec 2007 04:00:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6801087</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Aprendiendo LINQ para Visual Basic 2008</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6814262</link><pubDate>Thu, 20 Dec 2007 10:16:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6814262</guid><dc:creator>El blog de Jorge</dc:creator><description>&lt;p&gt;Si quieres aprender LINQ para Visual Basic 2008, quiz&amp;#225;s te interesen los siguientes art&amp;#237;culos que el&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 6: Joins (Bill Horst</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6922557</link><pubDate>Mon, 31 Dec 2007 21:49:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6922557</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 6: Joins (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6922652</link><pubDate>Mon, 31 Dec 2007 21:57:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6922652</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>引用:从SQL 到 LINQ, Part 1: 基础(Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#6974496</link><pubDate>Fri, 04 Jan 2008 05:55:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6974496</guid><dc:creator>zack</dc:creator><description>&lt;p&gt;引用:从SQL到LINQ,Part1:基础(BillHorst) [原文作者]:BillHorst&lt;/p&gt;
&lt;p&gt;[原文链接]:ConvertingSQLtoLINQ,Part1...&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 7: UNION, TOP, Subqueries (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#7031827</link><pubDate>Tue, 08 Jan 2008 22:35:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7031827</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 7: UNION, TOP, Subqueries (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#7032349</link><pubDate>Tue, 08 Jan 2008 23:33:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7032349</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Translating your T-SQL brain to LINQ</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#7595856</link><pubDate>Mon, 11 Feb 2008 03:14:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7595856</guid><dc:creator>Hot Topics</dc:creator><description>&lt;p&gt;Bill Horst of the VIsual Basic team at Microsoft has been writing a great series on Converting SQL to&lt;/p&gt;
</description></item><item><title>SQL から LINQ への変換、パート 7 : UNION、TOP、サブクエリ (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/19/converting-sql-to-linq-part-1-the-basics-bill-horst.aspx#8557388</link><pubDate>Thu, 29 May 2008 10:46:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8557388</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;ここでは、このシリーズの前の投稿をお読みになっていることを前提としています。 Converting SQL to LINQ, Part 1: The Basics ( 英語 ) Converting SQL&lt;/p&gt;
</description></item></channel></rss>