marthijn. Rotating Header Image

Posts under ‘.NET’

Fix .NET 4 SocketPermission for MySQL driver in Medium Trust

Most .NET 4 shared hosting providers offering their customers a medium trust environment. This is not a problem for most web applications unless the applications uses MySQL in combination with the .NET MySQL driver (MySQL.Data.dll). The MySQL driver connects to the MySQL database using a socket. However, sockets are not allowed in medium trust. The [...]

Possible solution for NHibernate many-to-many criteria

How to query an NHibernate many-to-many relationship.

Using log4net to show NHibernate SQL in Visual Studio

Configure log4net in order to show NHibernate SQL queries in Visual Studio’s console.

Using NUnit in Visual Studio 2010

How to use NUnit in Visual Studio 2010.

Type conversion in C#

Type conversion in C#

Using Rhino Mocks to mock a void function

Using NUnit and Rhino Mocks to create an expectation for a void function.