Searching for a case insensitive match in mongo is really simple, because it has full support for regular expression. As an example if you want to find all properties that is equal to a certain text with case insensitive search you can issue this query db.xxxx.find( { myProperty: /^text$/i } ); This query uses a […]

Continue reading about Insenstive search with Mongo with C# and LINQ provider

Today a colleague told me that he got a strange Entity Framework error Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries I immediately ask him what kind of huge and big query he was issuing to EF, but the answer is pretty simple. […]

Continue reading about Entity Framework error Some part of your SQL statement is nested too deeply

This is one of the most common question you got when you show LINQ to Entities or LINQ to Nhibernate to people that are not used to LINQ: How can I order by a property if I have the name of the property expressed as String? I’ve blogged in the past how you can do […]

Continue reading about Order by a property expressed as string in a LINQ Query

I’ve a simple class that contains Properties metadata and I need to pass instances of that class with WCF. Since it contains Dictionary of objects I decided to implement IXmlSerializable to decide the exact format of serialization and make it usable with WCF. Since I really hate reading XML stream with XmlReader, I decided to […]

Continue reading about Wcf, IXmlSerializable and The XmlReader state should be EndOfFile after this operation.

In this post I dealt with a  simple extension function to flatten a tree and in one of the comment Robert shared an interesting link that deal with the creation of a wrapper structure to use LINQ style function on tree structure. That article is really interesting, but the adopted solution requires to create a […]

Continue reading about Generic wrapper for LINQ to Tree