Blog Posts

  • Is64BitOperatingSystem and Is64BitProcess in .NET 4.0

    The Environment class in .NET 4.0 contains two static properties, Is64BitOperatingSystem and Is64BitProcess, for checking bitness. The code for these properties is quite elegant and simple to follow, taking advantage of the fact that there are two versions of mscorlib.dll assembly: one for x86 and one for x64. It is also possible to check if the process is running under WOW64 (Windows-on-Windows 64-bit).

  • Registering open generic interface types in Autofac

    This post covers how to register open generic interface types in Autofac V2, using the new RegisterAssemblyTypes method and an extension method. Nicholas Blumhardt (the creator of Autofac) suggested that this would be easy to implement, and it was done with a few unit tests and implementation code.

  • Limiting CTE recursion depth in SQL Server

    This article provides a few different methods for limiting the recursion depth of Common Table Expressions (CTEs) in SQL Server, such as reaching the default maximum recursion depth, setting the MAXRECURSION query hint, or manually controlling the recursion level.

  • Would you become a signatory of the SOA Manifesto?

    The SOA Manifesto is a manifesto similar to the Agile Manifesto, sparking debate and discussion. There is a SOA Manifesto Dialog site to voice opinions on it. Those who agree with the benefits of SOA should become signatories of the manifesto.

  • Free database goodness: LightSpeed Express and SQLite

    This article talks about the discontinuation of VistaDB Express, a free database engine, and how it can be replaced with other free databases such as SQLite, which is supported by LightSpeed Express, a free ORM. LightSpeed Express has features like LINQ to LightSpeed, an editor for Visual Studio, and the ability to create databases from existing models.