Devlico.Us
All Tags » Linq » HowTo (RSS)
CodeBetter.Com

Browse by Tags

  • Little nugget of simplification when loading an XDocument

    Today I needed to load in an XML file into memory for later use. At first I was going to use the XmlDocument library (old habits die hard), but later switched over to the XDocument library.  Why, not because one is better (ok, so I think that XDocument is better, but not the point here), but because...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 07-02-2008
  • Using XLinq to manipulate an XML Document, XLinq U Rock

    For the first time in a long time I needed to update values inside an XML document.  I have done this type of action many times in the past and have always hated it.  The syntax is clunky and the process is simply painful. So today when I realized I need to do this, let me just tell you I was...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 05-01-2008
  • Multi-Column Grouping with Linq2Sql

    Today as I was diving further into my Linq2Sql Odyssey I ran into a need to do grouping on data.  Bud not just single column grouping, I needed to group by multiple columns from multiple tables.  Because it took me a few minutes to get right, I thought I would share my experiences. Imagine...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 04-30-2008
  • Anonymous Casting with Linq to Sql

    ***** Disclaimer ****** I may be the last person to figure this out, but oh well. ***** End Disclaimer ****** Today as I was further exploring the coolness that is Linq to Sql I ran into a little situation.  I was creating a query where I wanted to use the columns form multiple tables to build an...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 04-09-2008
  • Sorting List's the .Net 3.5 Way

    This post is another in the recent string of How-to's. But it is just so hard to resist. .Net 3.5 has so many cool features, it is just fun to explore them all. Ok, so here is the issue we are going to solve today. We have a list of entities and we need to sort them. In this post I will show you...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 03-28-2008
  • Simple Linq to Object example with Casting

    This is my first go at playing with Linq. So far it is pretty cool, but I wanted to share something because I found it painful. I wanted query a list and then cast a anonymous type to a static type. I was not able to find anything on the net to help me with this (could be i just did not look in the right...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 02-22-2008
Page 1 of 1 (6 items)

Our Sponsors

Red-Gate!

Proudly Partnered With