{"id":720,"date":"2008-02-15T00:24:00","date_gmt":"2008-02-15T00:24:00","guid":{"rendered":"\/blogs\/bobb\/post\/Learning-LINQ-LINQ-to-SQL-and-eSQL.aspx"},"modified":"2008-02-15T00:24:00","modified_gmt":"2008-02-15T00:24:00","slug":"learning-linq-linq-to-sql-and-esql","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/","title":{"rendered":"Learning LINQ, LINQ to SQL and eSQL"},"content":{"rendered":"<p>\nI often hear those who identify themselves as &quot;database programmers&quot; (sometimes I think these&nbsp;may be&nbsp;folks who program only inside-database code), say: &quot;I&#39;d give learning LINQ and\/or LINQ to SQL\/Entities or Entity SQL (eSQL) a go in my sparse time, but I don&#39;t have a good book or a tool.\n<\/p>\n<p>\nI haven&#39;t read a book on either of these yet, spending most of my time in BOL. BOL is a good start (but not comprehensive) for LINQ and LINQ to SQL. eSQL docs are pretty sparse, but that&#39;s because its not a shipping product yet. Maybe things will improve. (Note: if anyone wants to send me a copy of their book to read in my spare time, I&#39;ll give it a go ;-).\n<\/p>\n<p>\nFollowing LINQ is more difficult than EF (modulo LINQ to Entities) because there&#39;s many implementations\/dialects. There are operators that LINQ (over objects) can do, but LINQ to&nbsp;SQL or LINQ to Entities cannot.\n<\/p>\n<p>\nOn to tools:\n<\/p>\n<p>\nFor LINQ, I like <a href=\"http:\/\/www.linqpad.net\/\">LINQPad<\/a>&nbsp;by Joseph Albahari. Simple to set up, although the queries are not *exactly* the same as you&#39;d write in a program. And it doesn&#39;t support LINQ to Entities yet (or LINQ to DataSet for that matter). But, all in all, an excellent tool.\n<\/p>\n<p>\nFor eSQL, there&#39;s no comparison to Zlatko Michailov&#39;s eSqlBlast. This is not only an eSQL practice query processor, but also a visualizer for the results you&#39;d get back. You just type in the eSQL. Even comes with source code. Latest version is <a href=\"http:\/\/www.codeplex.com\/Release\/ProjectReleases.aspx?ProjectName=adonetsamples&amp;ReleaseId=9063\">on CodePlex<\/a>. This is straight eSQL, no LINQ to Entities support here either.\n<\/p>\n<p>\nNeither one of these has Intellisence or statement completion, I believe.\n<\/p>\n<p>\nEnjoy&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I often hear those who identify themselves as &quot;database programmers&quot; (sometimes I think these&nbsp;may be&nbsp;folks who program only inside-database code), say: &quot;I&#39;d give learning LINQ and\/or LINQ to SQL\/Entities or Entity SQL (eSQL) a go in my sparse time, but I don&#39;t have a good book or a tool. I haven&#39;t read a book on [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29],"tags":[],"class_list":["post-720","post","type-post","status-publish","format-standard","hentry","category-data-access","category-sql-server-2008"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learning LINQ, LINQ to SQL and eSQL - Bob Beauchemin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learning LINQ, LINQ to SQL and eSQL - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"I often hear those who identify themselves as &quot;database programmers&quot; (sometimes I think these&nbsp;may be&nbsp;folks who program only inside-database code), say: &quot;I&#039;d give learning LINQ and\/or LINQ to SQL\/Entities or Entity SQL (eSQL) a go in my sparse time, but I don&#039;t have a good book or a tool. I haven&#039;t read a book on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2008-02-15T00:24:00+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/\",\"name\":\"Learning LINQ, LINQ to SQL and eSQL - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2008-02-15T00:24:00+00:00\",\"dateModified\":\"2008-02-15T00:24:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Access\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/data-access\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Learning LINQ, LINQ to SQL and eSQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learning LINQ, LINQ to SQL and eSQL - Bob Beauchemin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/","og_locale":"en_US","og_type":"article","og_title":"Learning LINQ, LINQ to SQL and eSQL - Bob Beauchemin","og_description":"I often hear those who identify themselves as &quot;database programmers&quot; (sometimes I think these&nbsp;may be&nbsp;folks who program only inside-database code), say: &quot;I&#39;d give learning LINQ and\/or LINQ to SQL\/Entities or Entity SQL (eSQL) a go in my sparse time, but I don&#39;t have a good book or a tool. I haven&#39;t read a book on [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/","og_site_name":"Bob Beauchemin","article_published_time":"2008-02-15T00:24:00+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/","name":"Learning LINQ, LINQ to SQL and eSQL - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2008-02-15T00:24:00+00:00","dateModified":"2008-02-15T00:24:00+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/learning-linq-linq-to-sql-and-esql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"Data Access","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/data-access\/"},{"@type":"ListItem","position":3,"name":"Learning LINQ, LINQ to SQL and eSQL"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=720"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/720\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}