<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiseCodes &#187; LINQ</title>
	<atom:link href="http://www.wisecodes.com/category/microsoft/linq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wisecodes.com</link>
	<description>Bringing You The Power of Code !!</description>
	<lastBuildDate>Wed, 01 Sep 2010 19:33:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linq to NHibernate, Version 1.0</title>
		<link>http://www.wisecodes.com/2009/09/linq-to-nhibernate-version-1-0/</link>
		<comments>http://www.wisecodes.com/2009/09/linq-to-nhibernate-version-1-0/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 19:55:11 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[NHibernate]]></category>

		<guid isPermaLink="false">http://www.wisecodes.com/?p=856</guid>
		<description><![CDATA[A few weeks ago, Oren Eini (Ayende Raihan or, as is often referred to) communicated the release of version 1.0 of the Linq provider for NHibernate, a feature highly demanded by users since the advent of integrated query language. NET. Although it will be included as part of NHibernate product in future versions, have decided [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, <strong><a href="http://ayende.com/blog" target="_blank">Oren Eini</a></strong> (Ayende Raihan or, as is often referred to) <strong><a href="http://ayende.com/Blog/archive/2009/07/26/nhibernate-linq-1.0-released.aspx" target="_blank">communicated</a></strong> the release of version 1.0 of the Linq provider for NHibernate, a feature highly demanded by users since the advent of integrated query language. NET.</p>
<p>Although it will be included as part of NHibernate product in future versions, have decided to release the current release of the supplier as separate package so you can start to be used from now. It is being tested in many applications in production for several years, and apparently the performance is just right.</p>
<p>And how can help the supplier, if you&#8217;re user of NHibernate? The following example from <strong><a href="http://www.caffeinatedcoder.com/linq-to-nhibernate/" target="_blank">Caffeinated Coder</a></strong> demonstrates how to query database can be simplified and made more readable using Linq and also benefit from strong typing, intellisense and compile-time checks:</p>
<p><strong>Using NHibernate API:</strong></p>
<pre class="brush: csharp;">
public IList&lt;Call&gt; GetCallsByDate(DateTime beginDate, int interpreterId)
{
    ICriteria criteria = Session.CreateCriteria(typeof(Call))
        .CreateAlias(&quot;Customer&quot;, &quot;Customer&quot;)
        .Add(Restrictions.Gt(&quot;StartTime&quot;, beginDate))
        .Add(
            Restrictions.Or(
                Restrictions.Lt(&quot;EndTime&quot;, DateTime.Now), Restrictions.IsNull(&quot;EndTime&quot;))
            )
        .Add(Restrictions.Eq(&quot;Interpreter.Id&quot;, interpreterId))
        .AddOrder(Order.Desc(&quot;StartTime&quot;))
        .AddOrder(Order.Desc(&quot;Customer.Name&quot;));
        return criteria.List&lt;Call&gt;() as List&lt;Call&gt;;
}
</pre>
<p><strong>Using Linq:</strong></p>
<pre class="brush: csharp;">
public IList&lt;Call&gt; GetCallsByDateWithLinq(DateTime beginDate, int interpreterId)
{
    var query = from call in Session.Linq&lt;Call&gt;()
        where call.StartTime &gt; beginDate
            &amp;&amp; (call.EndTime == null || call.EndTime &lt; DateTime.Now )
            &amp;&amp; call.Interpreter.Id == interpreterId
        orderby call.StartTime descending, call.Customer.Name
        select call;

    return query.ToList();
}
</pre>
<p>You can download both binaries and source code from the <strong><a href="http://sourceforge.net/projects/nhibernate/" target="_blank">SourceForge project page.</a></strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/09/linq-to-nhibernate-version-1-0/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/09/linq-to-nhibernate-version-1-0/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/09/linq-to-nhibernate-version-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINQ to SQL changes in VS 2010 &amp; .NET 4.0</title>
		<link>http://www.wisecodes.com/2009/06/linq-to-sql-changes-in-vs-2010-net-40/</link>
		<comments>http://www.wisecodes.com/2009/06/linq-to-sql-changes-in-vs-2010-net-40/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 19:00:44 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://www.wisecodes.com/?p=584</guid>
		<description><![CDATA[For some time did not read anything about LINQ To SQL, and the truth is that I had raised was going with this extension of LINQ in Visual Studio 2010 and. NET 4.0 &#8230; well, the fact is that work has continued in LINQ To SQL and brings a lot of developments. NET 4.0. You [...]]]></description>
			<content:encoded><![CDATA[<p>For some time did not read anything about LINQ To SQL, and the truth is that I had raised was going with this extension of LINQ in Visual Studio 2010 and. NET 4.0 &#8230; well, the fact is that work has continued in LINQ To SQL and brings a lot of developments. NET 4.0. You can access all the news in <a href="http://damieng.com/blog/2009/06/01/linq-to-sql-changes-in-net-40" target="_blank">this link</a>.</p>
<p>via <a href="http://damieng.com/blog/2009/06/01/linq-to-sql-changes-in-net-40" target="_blank">Damieng</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/06/linq-to-sql-changes-in-vs-2010-net-40/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/06/linq-to-sql-changes-in-vs-2010-net-40/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/06/linq-to-sql-changes-in-vs-2010-net-40/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>LinqPad</title>
		<link>http://www.wisecodes.com/2009/04/linqpad/</link>
		<comments>http://www.wisecodes.com/2009/04/linqpad/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 02:51:13 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.wisecodes.com/?p=356</guid>
		<description><![CDATA[I just learned of the existence of a very interesting tool called LinqPad, which allows query data using LINQ with. Net Framework 3.5. Click on the image to view large. Allows queries like: a) LINQ to SQL b) LINQ to Objects c) LINQ to XML After doing some tests I can say that is an [...]]]></description>
			<content:encoded><![CDATA[<p>I just learned of the existence of a very interesting tool called <a href="http://www.linqpad.net/" target="_blank">LinqPad</a>, which allows query data using LINQ with. Net Framework 3.5.</p>
<p><em>Click on the image to view large.</em><br />
<a href="http://www.linqpad.net/linqpadscreen.png" target="_blank"><img class="alignnone" src="http://www.linqpad.net/linqpadscreen.png" alt="" width="424" height="354" /></a></p>
<p>Allows queries like:</p>
<p>a) LINQ to SQL<br />
b) LINQ to Objects<br />
c) LINQ to XML</p>
<p>After doing some tests I can say that is an excellent tool, very comprehensive and allows flexibility to experience the power of LINQ and more of this interesting framework, which aims to be the big bet. NET for data access.</p>
<p><a href="http://www.linqpad.net/" target="_blank">Read More about LinqPad</a>&#8230;</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/04/linqpad/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/04/linqpad/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/04/linqpad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create An XML Document In C#</title>
		<link>http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/</link>
		<comments>http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 06:22:28 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.code.venuthomas.net/?p=253</guid>
		<description><![CDATA[It is very easy, as there I wondered, here is the code: ?View Code CSHARPusing System.Xml.Linq protected void CreateDocumentXML &#40;&#41; &#123; XDocument TheCodersXML = new XDocument&#40; new XDeclaration&#40;&#34;1.0&#34;,&#34;utf-8&#34;,&#34;yes&#34;&#41; new XComment&#40;&#34;List of Students&#34;&#41; new XElement&#40;&#34;Students&#34; new XElement&#40;&#34;Student&#34; new XAttribute&#40;&#34;Id&#34;,&#34;No:123&#34;&#41; new XElement&#40;&#34;Name&#34;,&#34;Diana Wallwalker&#34;&#41; new XElement&#40;&#34;Age&#34;,&#34;23&#34;&#41;&#41;, &#160; new XElement&#40;&#34;Student&#34; new XAttribute&#40;&#34;Id&#34;,&#34;No:456&#34;&#41; new XElement&#40;&#34;Name&#34;,&#34;Danny Thomas&#34;&#41; new XElement&#40;&#34;Age&#34;,&#34;27&#34;&#41;&#41;, &#160; new [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy, as there I wondered, here is the code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code4'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2534"><td class="code" id="p253code4"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Xml</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span>
<span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #6666cc; font-weight: bold;">void</span> CreateDocumentXML <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
XDocument TheCodersXML <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XDocument<span style="color: #008000;">&#40;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XDeclaration<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;1.0&quot;</span>,<span style="color: #666666;">&quot;utf-8&quot;</span>,<span style="color: #666666;">&quot;yes&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XComment<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;List of Students&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Students&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:123&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Diana Wallwalker&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;23&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>,
&nbsp;
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:456&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Danny Thomas&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;27&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>,
&nbsp;
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:789&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Roger Benny&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;20&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>,
&nbsp;
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:012&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Venu Thomas&quot;</span><span style="color: #008000;">&#41;</span>,
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;26&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>In the end it saved in the address you want:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code5'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2535"><td class="code" id="p253code5"><pre class="csharp" style="font-family:monospace;">TheCodersXML<span style="color: #008000;">.</span><span style="color: #0000FF;">Save</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">@&quot;c:\TheCodersXML.xml&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p> <br />
<strong><br />
<h4> Output:</h4>
<p></strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code6'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2536"><td class="code" id="p253code6"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0″ encoding=&quot;</span>utf-8″ <span style="color: #000066;">standalone</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #808080; font-style: italic;">&lt;!-- List of Students --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;students<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:123&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Diana Wallwalker<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>23<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:456&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Danny Thomas<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>27<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:789&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Roger Benny<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>20<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:012&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Venu Thomas<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>26<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/students<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Over 22 Links To LINQ</title>
		<link>http://www.wisecodes.com/2009/03/over-20-links-to-linq/</link>
		<comments>http://www.wisecodes.com/2009/03/over-20-links-to-linq/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 20:14:41 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[E-Books]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Trips]]></category>

		<guid isPermaLink="false">http://www.code.venuthomas.net/?p=241</guid>
		<description><![CDATA[LINQ Index Charlie Calvert&#8217;s Blog- Links to LINQ: Click Here.. The Server Side &#8211; LINQ/C# Learning Guide: Click Here.. LINQ Bloggers Troy Magennis &#8211; LINQed IN: Click Here.. Charlie Calvert&#8217;s Community Blog: Click Here.. LINQ- The Wandering Glitch: Click Here&#8230; OakLeaf Systems: Click Here.. LINQ Websites LINQDev: LINQ in Action: LINQ Videos LINQ Video: Luke [...]]]></description>
			<content:encoded><![CDATA[<h3><span style="text-decoration: underline;">LINQ Index</span></h3>
<p><a href="http://blogs.msdn.com/charlie/archive/2006/10/05/Links-to-LINQ.aspx" target="_blank">Charlie Calvert&#8217;s Blog- Links to LINQ: Click Here..</a><br />
<a href="http://www.theserverside.net/tt/articles/showarticle.tss?id=CsharpLINQLearningGuide2007" target="_blank">The Server Side &#8211; LINQ/C# Learning Guide: Click Here..</a></p>
<h3><span style="text-decoration: underline;">LINQ Bloggers</span></h3>
<p><a href="http://blog.aspiring-technology.com/" target="_blank">Troy Magennis &#8211; LINQed IN: Click Here..</a><br />
<a href="http://blogs.msdn.com/charlie/" target="_blank">Charlie Calvert&#8217;s Community Blog: Click Here..</a><br />
<a href="http://aabs.wordpress.com/linq/" target="_blank">LINQ- The Wandering Glitch: Click Here&#8230;</a><br />
<a href="http://oakleafblog.blogspot.com/" target="_blank">OakLeaf Systems: Click Here..</a></p>
<h3><span style="text-decoration: underline;">LINQ Websites</span></h3>
<p><a href="http://linqdev.com/" target="_blank">LINQDev:</a><br />
<a href="http://linqinaction.net/" target="_blank">LINQ in Action:</a></p>
<h3><span style="text-decoration: underline;">LINQ Videos</span></h3>
<p><a href="http://www.microsoft.com/emea/msdn/spotlight/" target="_blank">LINQ Video: </a><br />
<a href="http://channel9.msdn.com/shows/Going+Deep/Luke-Hoban-Orcas-Compiling-LINQ-C-Futures-Intellisense/" target="_blank">Luke Hoban: Orcas &#8211; Compiling LINQ, C# Futures, Intellisense</a></p>
<h3><span style="text-decoration: underline;">LINQ Books</span></h3>
<p><a href="http://www.amazon.com/dp/1590597893?tag=netsplore-20&amp;camp=14573&amp;creative=327641&amp;linkCode=as1&amp;creativeASIN=1590597893&amp;adid=162SDD42F3T1KG6ACCQ2&amp;" target="_blank">Amazon.com: Pro LINQ: Language Integrated Query in C# 2008 (Windows.Net) (Paperback)</a><br />
<a href="http://www.amazon.com/LINQ-Visual-Fabio-Claudio-Ferracchiati/dp/1590598261" target="_blank">Amazon.com: LINQ for Visual C# 2005 (Paperback)</a><br />
<a href="http://www.amazon.com/LINQ-2005-Fabio-Claudio-Ferracchiati/dp/1590598407" target="_blank">Amazon.com: LINQ for VB 2005 (Paperback)</a></p>
<h3><span style="text-decoration: underline;">LINQ Articles</span></h3>
<p><a href="http://www.singingeels.com/Articles/Improving_Performance_With_LINQ.aspx" target="_blank">SingingEels: Improving Performance With LINQ</a><br />
<a href="http://msdn.microsoft.com/en-us/library/aa730866(vs.80).aspx" target="_blank">Next-Generation Data Access: Making the Conceptual Level Real</a><br />
<a href="http://dotnetperls.com/Content/Sitemap-LINQ.aspx" target="_blank">LINQ ASP.NET Sitemap</a><br />
<a href="http://dotnetperls.com/Content/Lazy-LINQ-Queries.aspx" target="_blank">LINQ Lazy Evaluation</a><br />
<a href="http://dotnetperls.com/Content/LINQ-Windows-Forms.aspx" target="_blank">Query Windows Forms Controls in LINQ</a><br />
<a href="http://dotnetperls.com/Content/LINQ-Enumerable-Range.aspx" target="_blank">Enumerable.Range in C#</a><br />
<a href="http://dotnetperls.com/Content/ToDictionary-Lambda.aspx" target="_blank">ToDictionary Method in C#</a></p>
<h3><span style="text-decoration: underline;">From Microsoft</span></h3>
<p><a href="http://social.msdn.microsoft.com/forums/en-US/linqprojectgeneral/threads/" target="_blank">LINQ Project General</a><br />
<a href="http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx" target="_blank">LINQ 101 Samples</a></p>
<h4><strong>Some other books for ASP.NET MVC, LINQ, Silverlight, ASP.NET 3.5, Sharepoint Server. <a href="http://www.code.venuthomas.net/2009/03/free-e-books-for-beginner-programmers/" target="_blank">Click Here..</a></strong></h4>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/over-20-links-to-linq/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/over-20-links-to-linq/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/03/over-20-links-to-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intro to LINQ (Language Integrated Query)</title>
		<link>http://www.wisecodes.com/2009/03/intro-to-linq-language-integrated-query/</link>
		<comments>http://www.wisecodes.com/2009/03/intro-to-linq-language-integrated-query/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:21:03 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Learn]]></category>

		<guid isPermaLink="false">http://www.code.venuthomas.net/?p=204</guid>
		<description><![CDATA[Introduction to LINQ (Language Integrated Query) LINQ (Language Integrated Query) and .Net Framework 3.5 in a variety allows you to query the data in a standardized way for the typed of data collection, it features an integrated language. Development Tools Visual Studio 2008 are supported. LINQ is a language that supports the standard query operators [...]]]></description>
			<content:encoded><![CDATA[<h3>Introduction to LINQ (Language Integrated Query)</h3>
<p><strong>LINQ (Language Integrated Query) and .Net Framework 3.5</strong> in a variety allows you to query the data in a standardized way for the typed of data collection, it features an integrated language. Development Tools Visual Studio 2008 are supported.</p>
<p>LINQ is a language that supports the standard query operators are defined, you can filter the enumeration process and the projection of a common syntax for different data sets.</p>
<h3>Example:</h3>
<p>Select from the set of formulas to the LINQ query expression. In this code,  <strong>strName</strong> are extracted from the beginning with &#8216;<strong>v</strong>&#8216;, it is stored in <strong>str</strong>, it is output in sequence foreach</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p204code8'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2048"><td class="code" id="p204code8"><pre class="csharp" style="font-family:monospace;"><span style="color: #6666cc; font-weight: bold;">string</span> <span style="color: #008000;">&#91;</span> <span style="color: #008000;">&#93;</span>  strName <span style="color: #008000;">=</span>
<span style="color: #008000;">&#123;</span>
<span style="color: #666666;">&quot;Benny&quot;</span>,
<span style="color: #666666;">&quot;Venu&quot;</span>,
<span style="color: #666666;">&quot;Roger&quot;</span>,
<span style="color: #666666;">&quot;Thomas&quot;</span>,
<span style="color: #666666;">&quot;Varghese&quot;</span>,
<span style="color: #666666;">&quot;Danny&quot;</span>
<span style="color: #008000;">&#125;</span> <span style="color: #008000;">;</span>
var str <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">from</span> x <span style="color: #0600FF; font-weight: bold;">in</span>  strName
<span style="color: #0600FF; font-weight: bold;">where</span> x<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span>  <span style="color: #008000;">==</span> <span style="color: #666666;">'v'</span>
<span style="color: #0600FF; font-weight: bold;">select</span> x<span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span> var y <span style="color: #0600FF; font-weight: bold;">in</span>  str <span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
Console<span style="color: #008000;">.</span> <span style="color: #0000FF;">WriteLine</span> <span style="color: #008000;">&#40;</span>y<span style="color: #008000;">&#41;</span> <span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<h3>Language Specification:</h3>
<p>LINQ is a language, LINQ is introduced together with the new language version in order to provide more capacity.  For example, the query expressions, extension methods, lambda expressions, anonymous types and so on. As for the example in C# we would like to be referred to the specification from of C# 3.0.</p>
<h3>Data Source:</h3>
<p>LINQ, including those by third parties, may be applied to any type of data source. This is achieved by adding to the data source as a method for extending the standard query operators.</p>
<p>The traditional set of objects for sorting and enumerated data types and a similar array to handle efficiently the filter (Array class) by using the object or collection. The databases and XML data set on the ADO.NET operation was necessary and is treated as different data sets. LINQ by, and can be treated without distinction in the common data sets and objects. Compared with other languages, Ruby and Active Record is a combination of excellent handling of this collection are believed to be extended to counter-conscious language.</p>
<p>For example, Microsoft will be implemented by the following.</p>
<ul>
<li> LINQ to ADO.NET
<ul>
<li>LINQ to SQL (DLinq)</li>
<li> LINQ to Entities</li>
<li> LINQ to DataSet</li>
</ul>
</li>
<li>LINQ to XML (XLinq)</li>
<li>LINQ to Objects</li>
</ul>
<h3>The Language Which Corresponds to LINQ</h3>
<ul>
<li> C# 3.0</li>
<li>F# 1.1.8.1</li>
<li>Visual Basic 9.0</li>
</ul>
<p>As for C++/CLI as for the schedule which corresponds to LINQ it is not, the library related to LINQ it can be used only is until recently with sentence structure of sort.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/intro-to-linq-language-integrated-query/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/intro-to-linq-language-integrated-query/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/03/intro-to-linq-language-integrated-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

