-
In a previous post , I talked about the specification pattern. In the last sentence I promised you to keep you posted on the next version of the implementation. I still owe you guys that result. So without further ado: Download it here . The implementation itself is pretty straightforward. The class...
-
A few weeks ago I blogged about a proposed feature : enhance SpecFlow Assist comparison helpers with support for different comparison modes. The enchancment was based on introduction of an enumerator that would specify how a table should be compared with an instance or set: TheTableAndSetMatchWithoutRegardForOrder...
-
For some time now I’ve been willing to find a good implementation of the Specification Pattern. Information about this pattern can be found here: http://en.wikipedia.org/wiki/Specification_pattern interface ISpecification<TEntity> { bool IsSatisfiedBy(TEntity item); } The idea I had was to...
-
I learned from the website HookedOnLinq.com the way to do a LEFT OUTER JOIN with multiple columns. var query = from c in Customers join o in Orders on new {Col1 = c.CustomerID, Col2 = c.CountryCode} equals new {Col1 = o.CustomerID, Col2 = o.CountryCode} into g from o in g.DefaultIfEmpty() select new...
-
I’ll be speaking at the Microsoft Developer Days 2009, in the Academic Guestlecture. This session will take place friday at 16:30 in the Central America lecture room. Since its start in 1991, Microsoft Research has attrated numeral theoretical computer scientists like Turing Award winners Anthony...
-
Microsoft UK sends out these MSDN Flash newsletters once in a while. Every one of them has this poll with some .NET related question and the results come in the next letter. I got the latest today and last time the poll was about the following: What really amazes me is the high number of LINQ to SQL...
-
I encountered a problem today which in the end had an easy solution, but nevertheless took me over an hour to fix. Our project had been running for weeks without any problems, but today it suddenly failed with the message: 'ProjectDataContext' does not contain a constructor that takes '0'...
-
This is extremely easy and for most of you probably so obvious that you’ll start spamming me that this is time spend better on other things. But it has helped others and maybe it can help some of my visitors. I’ve used it when migrating data between two databases, where the data models were nothing alike...
-
The situation I talked about in my previous post had one very big issue: LINQ sometimes just is too dynamic... ;) The fact that I changed the value for the Ranking property for each SpecificObject that got matched, made the primary LINQ query have a different outcome. LINQ uses lazy evaluation and because...
-
While developing an algorithm to match preferences to possibilities, I had to sort a generic list of a specific object type (SpecificObject). The first x objects would be matched, the rest would be excluded because of the number of available places. To determine the group of objects that would be matched...
-
We probably all worked with dynamically generated controls on forms, ASP.NET pages or (user) controls. And I guess we've all written for-each statements to loop through the ControlCollection and filter out all the controls of a specific type, right? I wanted to do the same today, so I started by...
-
David , Alex and me just needed to get a load of data from some Excel sheets and work with the data. What's better than to load the data into a DataSet using OleDB and process it using LINQ to DataSets? Make sure you know what the format of your columns is and that the first row in your sheet holds...
-
Theres words around the internet that Orcas CTP delayed to March! http://linqinaction.net/blogs/main/archive/2007/02/02/orcas-february-ctp-delayed-to-march.aspx