Fluent interfaces. Make it easy to do it right

A fluent interface is a way to make what we could call an "inline" domain specific language using the power of the tools you already have at hand. Often when speaking statically typed object-oriented languages its a way to build an object graph or manipulate the state of an object in a mor... [More]

Handling lists of checkboxes with MonoRail

I have had some discussions with a few people about why i would use MonoRail as it (for these people) seem like a step back from WebForms. First of all its important to understand that WebForms provide a statefull abstraction over something that is in fact stateless. In my opinion this makes somethi... [More]

ActiveRecord introduction

Introduction Lately I have been writing some posts(in Danish) introducing ActiveRecord and MonoRail. I have gotten some requests for providing a translation of these in English. This is the fist one and its heavily based on the getting started guide found on castle website. This first post will in... [More]

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]

Today's errors running on the trunk

I did some work today with MonoRail and some of the tools from Ayende's repository (which contains a lot of tools/code snippets/extensions etc he calls Rhino Tools). I build both things from trunk as well as nHibernate from trunk because I tried to figure out a lot of internal stuff, however this ca... [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]