Dotnet

Query Object Pattern and Entity Framework - Making Readable Queries Members Public

Using a Query Object to contain large query criteria and iterating over the query to make it more readable.

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet

Protect Yourself Against Line Ending Issues when Using Environment.Newline to Split Text Members Public

The invisible character that at times take a lot of your time!

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet

Web Application Occasionally Throwing 'Could not Load File or Assembly or one of its Dependencies' Exception Members Public

We were facing a strange 'could not load DLL issue', when building and running multiple host projects in Visual Studio (VS 2015), side by side. We had 2 host projects - an NServiceBus worker role project (a console application) and a Web application and a few other projects,

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Tools

Could Not Load Assembly msshrtmi.dll? Members Public

While migrating a few Azure Cloud Services to Web Jobs, we started facing the error, Could not load assembly ... /msshrtmi.dll,for just one of the projects. The error provides the exact path from where it is trying to load the DLL and is the same path from which the

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet

IsRegistered on Unity Container for Generic Type Members Public

This post just describes a bug that is there in the Unity (3.5.1404) IoC container, when using the IsRegistered extension method, to check for generic types and a possible fix for it.

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet

Testing Multiple Implementations of same Interface Members Public

Often there are times when we need to test multiple implementations of the same interface. We would want to use the same test case against all the implementations so that we don't repeat ourselves. In this post we will see how we can reuse the same test cases

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet

IoC Registration by Convention Members Public

Sometime back we had seen, how to configure the unity container using code/config file and I was using a mix of this in one of my projects. This approach soon became an overhead, as the manual wiring up of registrations is really cumbersome and also error prone. Mostly there

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet

Configuring Unity Container: Comparing Code and Xml Configuration Side by Side Members Public

Setting up dependency containers from code is very easy, but not at all the same when done using a configuration file. The project that I am currently working on uses xml configuration for Unity container and I did struggle mapping certain dependencies, so thought of putting this up. To start

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Dotnet