And sometimes I don't want to use generics

time to read 2 min | 224 words

Take a look at this:

IList list = UnitOfWork.CurrentNHibernateSession

    .CreateCriteria(state.RecordType).List();

RecordType is a System.Type that is loaded from the database as one of the properties of the state. This means that I literally switch stuff around just by adding to records to a table.

Combine that with a Layer Super Type and dynamic data binding, and you have got a winner combination with regard to speed of changing things.