Dotnet
Query Object Pattern and Entity Framework - Making Readable Queries Paid Members Public
Using a Query Object to contain large query criteria and iterating over the query to make it more readable.
Protect Yourself Against Line Ending Issues when Using Environment.Newline to Split Text Paid Members Public
The invisible character that at times take a lot of your time!
Web Application Occasionally Throwing 'Could not Load File or Assembly or one of its Dependencies' Exception Paid 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,
Could Not Load Assembly msshrtmi.dll? Paid 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
IsRegistered on Unity Container for Generic Type Paid 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.
Testing Multiple Implementations of same Interface Paid 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
IoC Registration by Convention Paid 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
Configuring Unity Container: Comparing Code and Xml Configuration Side by Side Paid 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