Tag: c#

ASP.NET WebApi with NHibernate and Unity – Application Architecture

ASP.NET WebApi with NHibernate and Unity – Application Architecture

| September 16, 2013 | Reply

Recently I had to propose a sample .NET application which exposed a REST API. One of the requirements was that it had to use NHibernate. I am currently used to developing similar Java applications with Spring and Hibernate so naturally I decided I wanted the familiar architecture with clearly differentiated Controller, Service and DAO layers. […]

Read More

Beware overloaded operators in .net (for java programmers)

Beware overloaded operators in .net (for java programmers)

| June 6, 2013 | Reply

The following screenshot will be enough to make a fool of myself. As one can see the to variable is NULL. Why am I inside the if body then? I don’t know. I tried all kinds of variations of this piece of .. code. It turns out that the == operator is overloaded for the […]

Read More