<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6268407973637209632</id><updated>2024-09-27T13:27:12.402-07:00</updated><category term="LINQ"/><category term="Visual Studio 2008"/><category term="Code"/><category term="microsoft"/><category term="C#.net"/><category term="Vb.net"/><category term="ASp.net"/><category term="Operator"/><category term="help"/><category term="sample"/><category term="delete"/><category term="error"/><category term="iis"/><category term="start"/><category term="tab"/><category term="virtual"/><category term="website"/><category term=".Net 2003"/><category term="ADO.Net"/><category term="ALINK"/><category term="Build"/><category term="Create"/><category term="DirectoryEntry"/><category term="Example"/><category term="How"/><category term="Language-Integrated Query"/><category term="MS SQL Server"/><category term="Operator Name"/><category term="Operator Type"/><category term="Operators"/><category term="Partitioning"/><category term="Restriction"/><category term="Server"/><category term="Visual Studio"/><category term="Visual Studio 2003"/><category term="While"/><category term="XML"/><category term="action"/><category term="admin"/><category term="culture"/><category term="debugging"/><category term="detailed"/><category term="directory"/><category term="execution"/><category term="failed"/><category term="folder"/><category term="information"/><category term="install"/><category term="metabase.xml"/><category term="missing"/><category term="ordering"/><category term="output"/><category term="programmatically"/><category term="project"/><category term="projection"/><category term="qury"/><category term="remove"/><category term="restart"/><category term="run"/><category term="samaple"/><category term="satellite"/><category term="select"/><category term="service"/><category term="service pack"/><category term="solution"/><category term="solve"/><category term="steps"/><category term="stop"/><category term="trying"/><category term="unable"/><category term="verion"/><category term="version"/><category term="web server"/><category term="window"/><title type='text'>Microsoft Visual Studio</title><subtitle type='html'>About Latest visual studio news, Sample Code. SQL server News and Samples , Latest Web technology and more....</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-8388276714692100800</id><published>2008-11-10T15:29:00.000-08:00</published><updated>2008-11-10T15:38:08.373-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Create"/><category scheme="http://www.blogger.com/atom/ns#" term="delete"/><category scheme="http://www.blogger.com/atom/ns#" term="directory"/><category scheme="http://www.blogger.com/atom/ns#" term="DirectoryEntry"/><category scheme="http://www.blogger.com/atom/ns#" term="iis"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="programmatically"/><category scheme="http://www.blogger.com/atom/ns#" term="remove"/><category scheme="http://www.blogger.com/atom/ns#" term="Vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="website"/><title type='text'>Create and Delete Virtual Directory Programmatically</title><content type='html'>&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;create a function to create a new &lt;/span&gt;&lt;a style=&quot;POSITION: static; TEXT-DECORATION: underline !important&quot; id=&quot;KonaLink6&quot; oncontextmenu=&quot;return false;&quot; class=&quot;kLink&quot; onmouseover=&quot;adlinkMouseOver(event,this,6);&quot; onmouseout=&quot;adlinkMouseOut(event,this,6);&quot; onclick=&quot;adlinkMouseClick(event,this,6);&quot; target=&quot;_top&quot; href=&quot;http://www.codersource.net/csharp_iis_metabase.html#&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;virtual directory&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#000000;&quot;&gt; and set some properties of the new virtual directory.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#000000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;public void CreateNewVirtualDirectory(int ServerId, string VirtualDirName, string Path, bool AccessScript)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;DirectoryEntry Parent = new DirectoryEntry(@&quot;IIS://localhost/W3SVC/&quot; + ServerId.ToString() + &quot;/Root&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;DirectoryEntry NewVirtualDir;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;NewVirtualDir = Parent.Children.Add(VirtualDirName, &quot;IIsWebVirtualDir&quot;); &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;NewVirtualDir.Properties[&quot;Path&quot;][0] = Path;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;NewVirtualDir.Properties[&quot;AccessScript&quot;][0] = AccessScript;NewVirtualDir.CommitChanges();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#330099;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#000000;&quot;&gt;You can call this function like&lt;br /&gt;CreateNewVirtualDirectory(1, &quot;MyNewVirtualDirectory&quot;, @&quot;C:\Inetpub\wwwroot\MyDir&quot;, true)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#000000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;create a function to Delete &lt;a style=&quot;POSITION: static; TEXT-DECORATION: underline !important&quot; id=&quot;KonaLink6&quot; oncontextmenu=&quot;return false;&quot; class=&quot;kLink&quot; onmouseover=&quot;adlinkMouseOver(event,this,6);&quot; onmouseout=&quot;adlinkMouseOut(event,this,6);&quot; onclick=&quot;adlinkMouseClick(event,this,6);&quot; target=&quot;_top&quot; href=&quot;&quot;&gt;virtual directory&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;public void DeleteVirtualDirectory(int ServerId, string VirtualDirName)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;DirectoryEntry Parent = new DirectoryEntry(@&quot;IIS://localhost/W3SVC/&quot; + ServerId.ToString() + &quot;/Root&quot;); &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;Object[] Parameters = {&quot;IIsWebVirtualDir&quot;,VirtualDirName}; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;Parent.Invoke(&quot;Delete&quot;,Parameters ); &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#330099;&quot;&gt;}&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/8388276714692100800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/8388276714692100800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/8388276714692100800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/8388276714692100800'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/11/create-and-delete-virtual-directory.html' title='Create and Delete Virtual Directory Programmatically'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-6224615358301062369</id><published>2008-10-09T08:54:00.000-07:00</published><updated>2008-10-09T08:58:16.382-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="admin"/><category scheme="http://www.blogger.com/atom/ns#" term="ASp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="delete"/><category scheme="http://www.blogger.com/atom/ns#" term="iis"/><category scheme="http://www.blogger.com/atom/ns#" term="metabase.xml"/><category scheme="http://www.blogger.com/atom/ns#" term="missing"/><category scheme="http://www.blogger.com/atom/ns#" term="restart"/><category scheme="http://www.blogger.com/atom/ns#" term="Server"/><category scheme="http://www.blogger.com/atom/ns#" term="service"/><category scheme="http://www.blogger.com/atom/ns#" term="start"/><category scheme="http://www.blogger.com/atom/ns#" term="stop"/><category scheme="http://www.blogger.com/atom/ns#" term="tab"/><category scheme="http://www.blogger.com/atom/ns#" term="verion"/><title type='text'>ASP.NET Tab in IIS is Missing</title><content type='html'>&lt;span style=&quot;color:#000000;&quot;&gt;Here are the steps to fix the issue:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:georgia;color:#000000;&quot;&gt;1) Stop the IIS Admin service (and any services that depend on it) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:georgia;color:#000000;&quot;&gt;2) Open C:\WINDOWS\system32\inetsrv\MetaBase.xml in notepad or your favorite XML &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:georgia;color:#000000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:georgia;color:#000000;&quot;&gt;Editor. _DELETE_ the line that reads ‘Enable32BitAppOnWin64=”TRUE”’&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;font-family:georgia;&quot;&gt;3) Start -&gt; Run -&gt; iisreset&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/6224615358301062369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/6224615358301062369' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/6224615358301062369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/6224615358301062369'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/10/aspnet-tab-in-iis-is-missing.html' title='ASP.NET Tab in IIS is Missing'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-3172655787024261473</id><published>2008-10-09T08:50:00.000-07:00</published><updated>2008-10-09T08:54:29.693-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="debugging"/><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="folder"/><category scheme="http://www.blogger.com/atom/ns#" term="project"/><category scheme="http://www.blogger.com/atom/ns#" term="run"/><category scheme="http://www.blogger.com/atom/ns#" term="start"/><category scheme="http://www.blogger.com/atom/ns#" term="tab"/><category scheme="http://www.blogger.com/atom/ns#" term="trying"/><category scheme="http://www.blogger.com/atom/ns#" term="unable"/><category scheme="http://www.blogger.com/atom/ns#" term="version"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual"/><category scheme="http://www.blogger.com/atom/ns#" term="web server"/><category scheme="http://www.blogger.com/atom/ns#" term="website"/><category scheme="http://www.blogger.com/atom/ns#" term="While"/><title type='text'>Error while trying to run project: Unable to start debugging on the web server</title><content type='html'>&lt;span style=&quot;font-family:georgia;&quot;&gt;&lt;strong&gt;Error while trying to run project: Unable to start debugging on the web server&lt;/strong&gt;&lt;br /&gt;About the “&lt;span style=&quot;color:#990000;&quot;&gt;Error while trying to run project: Unable to start debugging on the web server&lt;/span&gt;.” Error.&lt;br /&gt;&lt;br /&gt;Open your Internet Information Services manager and from the [your machine]/Web Sites/ Default Web Site node select the virtual folder which stores your project. Right Click and select Properties to select the ASP.NET tab page. Make sure the correct version ASP.NET Version is selected. &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/3172655787024261473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/3172655787024261473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/3172655787024261473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/3172655787024261473'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/10/error-while-trying-to-run-project.html' title='Error while trying to run project: Unable to start debugging on the web server'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-6437821783723444404</id><published>2008-08-28T18:23:00.000-07:00</published><updated>2008-08-28T18:27:58.307-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net 2003"/><category scheme="http://www.blogger.com/atom/ns#" term="ALINK"/><category scheme="http://www.blogger.com/atom/ns#" term="Build"/><category scheme="http://www.blogger.com/atom/ns#" term="culture"/><category scheme="http://www.blogger.com/atom/ns#" term="detailed"/><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="failed"/><category scheme="http://www.blogger.com/atom/ns#" term="How"/><category scheme="http://www.blogger.com/atom/ns#" term="information"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="output"/><category scheme="http://www.blogger.com/atom/ns#" term="satellite"/><category scheme="http://www.blogger.com/atom/ns#" term="service pack"/><category scheme="http://www.blogger.com/atom/ns#" term="solution"/><category scheme="http://www.blogger.com/atom/ns#" term="solve"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2003"/><category scheme="http://www.blogger.com/atom/ns#" term="window"/><title type='text'>Build Error (ALINK: error ):Satellite build for culture &#39; xx&#39; failed.</title><content type='html'>When you build a project in Microsoft Visual Studio .NET 2003 that includes many forms and controls that you can localize, the build process may not succeed and you may receive an error message that is similar to the following in the output window:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;Building satellite assemblies... Satellite build for culture &#39;fr&#39; failed. Please see the output window for more detailed error information. ALINK: error AL1022: Error reading embedded resource &#39;C:\Visual Studio Projects\WindowsApplication1\obj\Debug\For&#39; -- The system cannot find the file specified.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Confirm that the machine has Microsoft Visual studio .net 2003 Service pack 1 is installed. If not installed then install it. This will solve the above issue.</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/6437821783723444404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/6437821783723444404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/6437821783723444404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/6437821783723444404'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/08/build-error-alink-error-satellite-build.html' title='Build Error (ALINK: error ):Satellite build for culture &#39; xx&#39; failed.'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-1960158435441190892</id><published>2008-06-14T21:57:00.000-07:00</published><updated>2008-12-10T17:27:09.963-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="action"/><category scheme="http://www.blogger.com/atom/ns#" term="execution"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="qury"/><category scheme="http://www.blogger.com/atom/ns#" term="steps"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><title type='text'>LINQ Query Expression Steps</title><content type='html'>&lt;span style=&quot;color:#cc0000;&quot;&gt;LINQ Actions&lt;/span&gt;&lt;br /&gt;LINQ query operation consists of the following actions,&lt;br /&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_vS6j1hmBhFM/SFShf5SDIGI/AAAAAAAAA2U/KDm-NaibvmQ/s1600-h/ExecutionSteps.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5211968238099046498&quot; style=&quot;FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand&quot; alt=&quot;&quot; src=&quot;http://1.bp.blogspot.com/_vS6j1hmBhFM/SFShf5SDIGI/AAAAAAAAA2U/KDm-NaibvmQ/s320/ExecutionSteps.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;Our query expression &lt;/span&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;syntax looks like this,&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_vS6j1hmBhFM/SFShgPt47tI/AAAAAAAAA2c/RuK8w9OeCl4/s1600-h/QueryExpression.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5211968244121398994&quot; style=&quot;FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand&quot; alt=&quot;&quot; src=&quot;http://3.bp.blogspot.com/_vS6j1hmBhFM/SFShgPt47tI/AAAAAAAAA2c/RuK8w9OeCl4/s320/QueryExpression.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;First Query&lt;/span&gt;&lt;/div&gt;Let us get started with our first utility function which is to display all names in our names array&lt;br /&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_vS6j1hmBhFM/SFSiaGcd58I/AAAAAAAAA2k/J1fG2WM2vT4/s1600-h/First+Query.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5211969238064818114&quot; style=&quot;FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand&quot; alt=&quot;&quot; src=&quot;http://4.bp.blogspot.com/_vS6j1hmBhFM/SFSiaGcd58I/AAAAAAAAA2k/J1fG2WM2vT4/s320/First+Query.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Here from array names, take each array element into a variable called name and select them all. &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/1960158435441190892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/1960158435441190892' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/1960158435441190892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/1960158435441190892'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/06/linq-query-actions.html' title='LINQ Query Expression Steps'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_vS6j1hmBhFM/SFShf5SDIGI/AAAAAAAAA2U/KDm-NaibvmQ/s72-c/ExecutionSteps.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-1370318533456662277</id><published>2008-05-25T02:45:00.000-07:00</published><updated>2008-05-25T02:52:06.720-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="help"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Operator"/><category scheme="http://www.blogger.com/atom/ns#" term="ordering"/><category scheme="http://www.blogger.com/atom/ns#" term="sample"/><category scheme="http://www.blogger.com/atom/ns#" term="Vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><title type='text'>Visual Studio 2008 - LINQ Ordering Operators  Sample</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;OrderBy - Simple&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;This sample prints an alphabetically sorted version of an input string array. The sample uses orderby to perform the sort.&lt;br /&gt;publicvoid Linqsample()&lt;br /&gt; {&lt;br /&gt;     string[] colors = { &quot;Blue&quot;, &quot;red&quot;, &quot;green&quot; };&lt;br /&gt;    var sortedcolorss = from c in colors&lt;br /&gt;                                      orderby c&lt;br /&gt;    select c;&lt;br /&gt;    Console.WriteLine(&quot;The sorted list of colors:&quot;);&lt;br /&gt;    foreach (var c in sortedcolors)&lt;br /&gt;    {&lt;br /&gt;            Console.WriteLine(c);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;&lt;strong&gt;Result&lt;/strong&gt; &lt;/span&gt;&lt;br /&gt;The sorted list of words:&lt;br /&gt;Blue&lt;br /&gt;green&lt;br /&gt;red</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/1370318533456662277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/1370318533456662277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/1370318533456662277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/1370318533456662277'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/05/visual-studio-2008-linq-ordering.html' title='Visual Studio 2008 - LINQ Ordering Operators  Sample'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-8141449914051702434</id><published>2008-05-24T23:24:00.000-07:00</published><updated>2008-05-25T00:22:00.425-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Operator"/><category scheme="http://www.blogger.com/atom/ns#" term="projection"/><category scheme="http://www.blogger.com/atom/ns#" term="sample"/><category scheme="http://www.blogger.com/atom/ns#" term="select"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><title type='text'>Visual Studio 2008 - LINQ Projection Operators Sample</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;Select - Simple&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;This sample prints a integers Hundred greater than those in an input array. The sample uses the expression in the select clause to add hundred to each element in the new sequence.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;public void Linqsample() &lt;/p&gt;&lt;p&gt;{    &lt;/p&gt;&lt;p&gt;               int[] numbers = { 500, 400, 100, 300, 900, 800, 600, 700, 200, 000 };    &lt;/p&gt;&lt;p&gt;              var numsPlusOne =        from n in numbers        &lt;/p&gt;&lt;p&gt;              select n + 100;        &lt;/p&gt;&lt;p&gt;             Console.WriteLine(&quot;Numbers + 100:&quot;);    &lt;/p&gt;&lt;p&gt;             foreach (var i in numsPlusHundred) &lt;/p&gt;&lt;p&gt;              {        Console.WriteLine(i);    }&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;Result&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Numbers + 1:&lt;/p&gt;&lt;p&gt;600&lt;/p&gt;&lt;p&gt;500&lt;/p&gt;&lt;p&gt;200&lt;/p&gt;&lt;p&gt;400&lt;/p&gt;&lt;p&gt;1000&lt;/p&gt;&lt;p&gt;900&lt;/p&gt;&lt;p&gt;700&lt;/p&gt;&lt;p&gt;800&lt;/p&gt;&lt;p&gt;300&lt;/p&gt;&lt;p&gt;100&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/8141449914051702434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/8141449914051702434' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/8141449914051702434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/8141449914051702434'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/05/visual-studio-2008-linq-projection.html' title='Visual Studio 2008 - LINQ Projection Operators Sample'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-2500927518578075885</id><published>2008-05-24T23:06:00.000-07:00</published><updated>2008-05-24T23:23:23.977-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="help"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="Operators"/><category scheme="http://www.blogger.com/atom/ns#" term="Restriction"/><category scheme="http://www.blogger.com/atom/ns#" term="sample"/><category scheme="http://www.blogger.com/atom/ns#" term="Vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><title type='text'>Visual Studio 2008 - LINQ Restriction Operators Sample</title><content type='html'>&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Where - Simple 1&lt;/strong&gt;&lt;br /&gt;This sample prints each element of an input integer array whose value is less than 500. The sample uses a query expression to create a new sequence of integers and then iterates over each element in the sequence, printing its value. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;br /&gt;public void LinqSample()&lt;br /&gt;{   &lt;br /&gt;    int[] arr= { 500, 400, 100, 300, 900, 800, 600, 700, 200, 000 };   &lt;br /&gt;    var lowNums =        from result in arr&lt;br /&gt;                                 where result &lt; 500       &lt;br /&gt;     select result ;   &lt;br /&gt;     Console.WriteLine(&quot;arr &lt; 500:&quot;);   &lt;br /&gt;     foreach (var n in lowNums)&lt;br /&gt;     {       &lt;br /&gt;          Console.WriteLine(n);   &lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt;&lt;strong&gt;Result:&lt;/strong&gt;&lt;br /&gt;arr &lt; 500:&lt;br /&gt;400&lt;br /&gt;100&lt;br /&gt;300&lt;br /&gt;200&lt;br /&gt;000&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/2500927518578075885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/2500927518578075885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/2500927518578075885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/2500927518578075885'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/05/visual-studio-2008-linq-restriction.html' title='Visual Studio 2008 - LINQ Restriction Operators Sample'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-3135305756425302591</id><published>2008-05-24T22:01:00.000-07:00</published><updated>2008-05-25T00:29:34.844-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="help"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Operator"/><category scheme="http://www.blogger.com/atom/ns#" term="Partitioning"/><category scheme="http://www.blogger.com/atom/ns#" term="samaple"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><title type='text'>Visual Studio 2008 - LINQ Partitioning Operators Sample</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;Partitioning Operators&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;Take - Simple&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This sample uses Take to generate a sequence of the first three elements of an integer array. It then iterates through the sequence to print the results.&lt;br /&gt;public void LinqSample()&lt;br /&gt;{           &lt;br /&gt;               int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };                       &lt;br /&gt;              var first3Numbers = numbers.Take(3);                       &lt;br /&gt;              Console.WriteLine(&quot;First 3 numbers:&quot;);           &lt;br /&gt;              foreach (var n in first3Numbers)&lt;br /&gt;             {               &lt;br /&gt;                   Console.WriteLine(n);           &lt;br /&gt;              }       &lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;ResultFirst 3 numbers:&lt;/span&gt;&lt;br /&gt;                  5&lt;br /&gt;                  4&lt;br /&gt;                  1</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/3135305756425302591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/3135305756425302591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/3135305756425302591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/3135305756425302591'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/05/visual-studio-2008-linq-partitioning.html' title='Visual Studio 2008 - LINQ Partitioning Operators Sample'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6268407973637209632.post-1197621086278677230</id><published>2008-05-24T02:42:00.000-07:00</published><updated>2008-08-28T18:30:11.784-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADO.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Language-Integrated Query"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ"/><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Operator Name"/><category scheme="http://www.blogger.com/atom/ns#" term="Operator Type"/><category scheme="http://www.blogger.com/atom/ns#" term="Vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>LINQ in Visual Studio 2008</title><content type='html'>&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;LINQ &lt;/strong&gt;stand for &lt;strong&gt;Language-Integrated Query&lt;/strong&gt; is now available as an integral part of Visual Studio 2008. Visual Studio gives a native syntax to developers in the form LINQ to C# and VB.Net for accessing data from any repository. The repository could be in memory object, database (still MS SQL Server only) and XML files.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;what LINQ is doing&lt;/strong&gt; &lt;strong&gt;?&lt;/strong&gt;&lt;br /&gt;Basically LINQ address the current database development model in the context of Object Oriented Programming Model. If some one wants to develop database application on .Net platform the very simple approach he uses ADO.Net. ADO.Net is serving as middle ware in application and provides complete object oriented wrapper around the database SQL.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;LINQ has a great power of querying on any source of data, data source could be the collections of objects, database or XML files. We can easily retrieve data from any object that implements the IEnumerable&lt;t&gt; interface. Microsoft basically divides LINQ into three areas and that are give below.&lt;br /&gt;&lt;strong&gt;o&lt;/strong&gt; LINQ to Object {Queries performed against the in-memory data}&lt;br /&gt;&lt;strong&gt;o&lt;/strong&gt; LINQ to ADO.Net&lt;br /&gt;&lt;strong&gt;o&lt;/strong&gt; LINQ to SQL (formerly DLinq) {Queries performed against the relation database only Microsoft SQL Server Supported}&lt;br /&gt;&lt;strong&gt;o&lt;/strong&gt; LINQ to DataSet {Supports queries by using ADO.NET data sets and data tables}&lt;br /&gt;&lt;strong&gt;o&lt;/strong&gt; LINQ to Entities {Microsoft ORM solution}&lt;br /&gt;&lt;strong&gt;o&lt;/strong&gt; LINQ to XML (formerly XLinq) { Queries performed against the XML source}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color:#996633;&quot;&gt;1. Code 1&lt;/span&gt;&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;&lt;span style=&quot;color:#cc6600;&quot;&gt;int[] numbers = new int[] {100,101,102};&lt;br /&gt;var result = from output in numbers where output &lt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#cc6600;&quot;&gt;select output;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#cc6600;&quot;&gt;foreach(int count in result) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;color:#cc6600;&quot;&gt;Console.WriteLine(count);&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br /&gt;100&lt;br /&gt;101&lt;br /&gt;102&lt;br /&gt;All type of SQL Operates are available in LINQ to Object. like Sum Operator in the following code.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#996633;&quot;&gt;2. Code 2&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;color:#cc9933;&quot;&gt;int[]numbers = new int[] {2,4,6,2};&lt;br /&gt;int result = nums.Sum();&lt;br /&gt;Console.WriteLine(result);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;LINQ to object provided main types of Operator Type that are give below&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Operator Types Operator Name&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Aggregation&lt;/strong&gt; • Aggregate • Average • Count • LongCount, • Max, • Min, • Sum &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Conversion&lt;/strong&gt; • Cast, • OfType, • ToArray, • ToDictionary, • ToList, &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;•ToLookup, ToSequence&lt;br /&gt;&lt;strong&gt;Element&lt;/strong&gt; • DefaultIfEmpty, • ElementAt, • ElementAtOrDefault, • First,&lt;br /&gt;• FirstOrDefault, • Last, • LastOrDefault, • Single, • SingleOrDefault&lt;br /&gt;&lt;strong&gt;Equality&lt;/strong&gt; • EqualAll&lt;br /&gt;&lt;strong&gt;Generation&lt;/strong&gt; • Empty, • Range, • Repeat&lt;br /&gt;&lt;strong&gt;Grouping&lt;/strong&gt; • GroupBy&lt;br /&gt;&lt;strong&gt;Joining&lt;/strong&gt; • GroupJoin, • Join&lt;br /&gt;&lt;strong&gt;Ordering&lt;/strong&gt; • OrderBy, • ThenBy, • OrderByDescending,&lt;br /&gt;• ThenByDescending, • Reverse&lt;br /&gt;&lt;strong&gt;Partitioning&lt;/strong&gt; • Skip, • SkipWhile, • Take, • TakeWhile&lt;br /&gt;&lt;strong&gt;Quantifiers&lt;/strong&gt; • All, • Any, • Contains&lt;br /&gt;&lt;strong&gt;Restriction&lt;/strong&gt; • Where&lt;br /&gt;&lt;strong&gt;Selection&lt;/strong&gt; • Select, • SelectMany&lt;br /&gt;Set • Concat, • Distinct, • Except, • Intersect, • Union&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://visualstudio-2008.blogspot.com/feeds/1197621086278677230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6268407973637209632/1197621086278677230' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/1197621086278677230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6268407973637209632/posts/default/1197621086278677230'/><link rel='alternate' type='text/html' href='http://visualstudio-2008.blogspot.com/2008/05/linq-stand-for-language-integrated.html' title='LINQ in Visual Studio 2008'/><author><name>Ragesh</name><uri>http://www.blogger.com/profile/05781894818445581463</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>