Geeks With Blogs

News





INauseous() Shawn Cicoria - Solution Architect, Craftsman and Artisan - INauseous() - Main Blog Here: www.Cicoria.com LINQ
Emitting XML via LINQ
Just posted about reading XML via LINQ. Now, this post is about the opposite direction - emitting XML from a collection. The simplicity of LINQ provides a straightforward interaction with XML makes LINQ to XML for me one of the easiest and most natural ways to interact with XML. The following emits a collection of objects out to an XElement (which can be streamed elsewhere as required. 35 Customer[] customers = new Customer[]{ 36 new Customer{ 37 firstName="john", lastName="lennon"}, 38 new Customer{ ......

Posted On Wednesday, December 3, 2008 7:49 AM

Learning LINQ - No excuses
There are really a whole bunch of great resources out there that help the community get up & running with LINQ. Personally, with all the additional providers that I've seen (Qak Leaf List) - several of which I see great use for - LINQ to SharePoint and LINQ to LDAP / LINQ for AD. In regards to tools, LINQ Pad is the tool that allows you to toil with the syntax, etc. LINQ Pad And now, here's a good 100+ pages on LINQ syntax in C# 3.0. Book Preview: C# Query Expressions and Supporting Features ......

Posted On Thursday, March 13, 2008 9:59 AM

LINQ to XML - retrieving Element values with varying namespaces...
Recently I had to deal with some XML supplied to a development group that wasn't the greatest in structure. For one, there was inconsistent use of namespaces and each repeating element had the namespace duplicated. The goal was to retrieve from the XML various element values for a business object. So, using LINQ to XML, there's some pretty neat ways to go about this. The most succinct that I came up with is below - of course it could be tiny bit more succinct in terms of not using locally scoped ......

Posted On Monday, November 24, 2008 7:07 PM

Parallel Computing - NY Times Article and the .NET Parallel Extensions.
A timely article appeared in the NY Times today (link) regarding Parallel computing as the next key factor in keeping up with the ever demanding needs of getting things done faster. As the article points out, the single CPU processor can't address our needs for faster computational capability without literally burning up or melting. I've seen this personally with Vista and the stressing of the GPU on some older notebooks. So, what's the solution, well, it's been around for decades, it's just now ......

Posted On Monday, December 17, 2007 5:38 PM

Query SQL (or any LINQ Provider) Using LINQPad...
Here's a cool tool that provides an interactive LINQ environment that you can use to develop queries against LINQ sources (SQL, Objects, XML, etc.). If you're working with LINQ and need an environment that supports both expression and language statements in C# or VB.NET, this tool can handle both. The below shot is using C# statements. A few bonus items included: 1. provides a view of both the resulting SQL and Lambda expressions used in the query. 2. Provides SQL execution as well 3. A whole bunch ......

Posted On Saturday, December 15, 2007 4:46 PM

Copyright © Shawn Cicoria | Powered by: GeeksWithBlogs.net