Introduktion til MonoRail

(Once again a post in danish, this time an introduction to MonoRail building an blog based on the datamodel from the previous posts. Again if you want this content in english let me know) Introduktion I de tre forrige indlæg har jeg beskrevet Castle ActiveRecord og hvordan vi ved at udnytte ... [More]

ActiveRecords med validering og uden baseklasse

This post is in danish and is a third part in an introduction to Castle ActiveRecord, if you would like to see this content in english let me know Introduktion Vi så i første indlæg hvordan vi oprettede ActiveRecord klasser. Disse klasser kunne bruges til at gemme objekter i databasen ved hjælp af ... [More]

Hent data med Castle ActiveRecord

This post is in danish and is a second part in an introduction to Castle ActiveRecord, if you would like to see this content in english let me know Introduktion I sidste post kiggede vi på hvordan vi kan specificere en sammenhæng mellem vores klasser og vores database med Castle ActiveRecord. Nu e... [More]

Introduktion til Castle ActiveRecord

This post is in danish and contains a simple introduction to using ActiveRecord, it is heavily based on the guide found here. If you would like an english version of the content let me know. Introduktion Jeg vil i denne blogpost introducere Castle ActiveRecord der er en implementation på .NE... [More]

Implementing custom types in nHibernate

nHibernate can persist a lot of different datatypes, of course all the basic types in the .NET framework and some more sophisticated. However if you feel some type is missing go ahead and implement it. All that is required is that your type implements the IUserType interface shown below: public i... [More]

Misunderstood common concepts in your programming language

As we all know we have a range of access modifiers in C#: public, protected, internal and private. These can be used as a single word or in a single case be combined: that is internal protected (and the other way around protected internal). During a conversation with a friend yesterday regar... [More]

Fun with static constructors

A couple of days ago, a colleague of mine worked on logging in an application, he made a solution where the logging solution had minimal readability impact on the parts of the codebase utilizing the logging framework. However a single setting had to be changed depending on which context we were do... [More]