-
I was doing some profiling of our Entity Framework stuff via EFProfiler the other day and noticed something really odd. When I was watching the profiler I noticed that I had a query returning back over 1300 results and that was NOT right, I had expected only 1 result. I looked the resulting...
-
I am in the middle of building out some wcf endpoints to support the Dimecasts.net WP7 application I am going to publish. The code below is some of my main logic which helps grab the episodes. Because the data for Dimecasts is not very volatile I am going to do some basic (aka primitive)...
-
I’ve been working on the Silverlight client for the RavenDB . In Raven, you can write a Linq query in the Silverlight client that will ultimately be executed against a Raven server somewhere. The execution of the query is asynchronous and we want that to be explicit in the api. It should be obvious to...
-
I’m a big fan of Linq. The more I learn about functional programming, the more I love (and use) Linq. However with any higher level abstraction there is the possibility of the mysterious inner workings differing from your intuitive expectations. (This one of the dangers of frameworks being ‘too helpful...
-
Just as a reminder, even though you might have seen it before on twitter or nhforge or Ayende’s blog As of today, we released the first version of NHibernate.Linq. It is currently based on Criteria API, and can handle many situations that it can handle. NHibernate.Linq was the first project that...
-
I hate seeing code mixed with markup. Seeing a template page with <% if(show) { %> makes me want to claw my eyes out. Seeing String htmlTitle = "<h1>" + title + "</h1>" causes me to vomit up a little something in my throat. Mixing code with markup is not a...
-
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...
-
If you happen to be using Linq2Sql and are also someone who tests, I have something for you. You can use Linq's DataContext to create your database and then populate it with test data prior to each test run. Note that you can do this same thing when using other OR/M tools such as NHIbernate...
-
Originally this series was meant to be titled 'Any thing you can do I can do better', but to be honest after writing the Xml/XPath examples I realized the XLinq is really no better per say than Xml/XPath. However, what XLinq does bring to the table that Xml/XPath does not: Does not need...
-
Originally this series was meant to be titled 'Any thing you can do I can do better', but to be honest after writing the Xml/XPath examples I realized the XLinq is really no better per say than Xml/XPath. However, what XLinq does bring to the table that Xml/XPath does not: Does not need...
-
Originally this series was meant to be titled 'Any thing you can do I can do better', but to be honest after writing the Xml/XPath examples I realized the XLinq is really no better per say than Xml/XPath. However, what XLinq does bring to the table that Xml/XPath does not: Does not need...
-
Originally this series was meant to be titled 'Any thing you can do I can do better', but to be honest after writing the Xml/XPath examples I realized the XLinq is really no better per say than Xml/XPath. However, what XLinq does bring to the table that Xml/XPath does not: Does not need...
-
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...
-
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...
-
Gotta say, I am kinda flustered right now. Today I was trying to perform what I thought to be a pretty straight forward Linq2Sql query, but turns out it was not. Overview I have a query that joins a few tables together to get some data, but in place of returning explicit instance of a data entity...