I’m hacking along on my Document DB emulator ontop of Sql Server XML columns. I have some decent Linq support in place now. The following query: will yield the following Sql + XQuery to the Sql Server:More
Category Archives: C#
Building a Document DB ontop of Sql Server
I’ve started to build a Document DB emulator ontop of Sql Server XML columns. Sql Server XML columns can store schema free xml documents, pretty much like RavenDB or MongoDB stores schema free Json/Bson documents. XML Columns can be indexed and queried using XPath queries. So I decided to build an abstraction layer ontop of…More
.NET disassembled Part 2: for loops
.NET Disassembled Part 1: integers in .NET Part 2: This post This is my second post on .NET performance, in this series of posts I will try to show how .NET code performs compared to pure C++ code. Today I will show how a C# for loop compares to a Win32 C++ for loop. First we…More
.NET disassembled Part 1: Integers in .NET
Today I attended one of Juval Löwy’s sessions on our inhouse conference. He argued that every object in .NET is a COM object behind the scenes, even Int32. Fair enough, Int32 is a type and it does have a Guid. The argument was an attempt to show that .NET is slow and that everything is pushed…More
Entity Framework 4 Enum support in Linq
As many of you might know, Entity Framework 4 still lacks support to map enum properties. There are countless of more or less worthless workarounds, everything from exposing constants integers in a static class to make it look like an enum to totally insane generics tricks with operator overloading. None of those are good enough…More
