Use the power of let in your LINQ queries

Posted by: Fabrice's weblog, on 05 Dec 2007 | View original | Bookmarked: 0 time(s)

Often, when you try to find out how to write the correct LINQ query you need, you end up being confused because it becomes too complex. In such situations, you should remember that the let clause is here to help you. Let's see is an example from the official LINQ forum.Someone asked how to query the following XML document: <cars>  <car name="Toyota Coupe">    <profile name="Vendor" value="Toyota"/>    <profile name="Model" value="Celica"/>   ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XLinq | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 826 | Hits: 210

Similar Posts

  • Introducing Versatile DataSources more
  • Dynamic in C# 4.0: Creating Wrappers with DynamicObject more
  • Adding users to a TFS project when youre not on the domain more
  • URL Routing with ASP.NET 4 Web Forms (VS 2010 and .NET 4.0 Series) more
  • LINQ to SQL, Lazy Loading and Prefetching more
  • Creating a Filtering User Interface With jQuery In a Web Forms Application: Part 1 more
  • StreamInsight more
  • "ADO.NET Entity data model" or "edmx" or "L2E" debug visualizer more
  • Altering OQL queries to generate different JOIN clauses in SQL. more
  • Trials & Tribulations of running windows scripts in Vista more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD