Geeks With Blogs
Liam McLennan August 2010 Entries
Fluent NHibernate Automapping – Ignore Open Generic Types
The usual starting point for automapping is to tell NHibernate to map all of the types from a particular assembly. From there we may filter the set of types that are mapped by providing a predicate. The common pattern looks something like this: AutoPersistenceModel.MapEnt... .Where(type => type.Namespace == "Acme.Domain"); If we want to exclude a particular type within the namespace that is easy: AutoPersistenceModel.MapEnt... .Where(type ......

Posted On Monday, August 30, 2010 4:03 PM

Javascript Composite UIs
Increasingly I find myself building web applications that rarely, if ever, reload the page. Ajax is used to communicate with the server and to update parts of the page as required. After much trial and error I have come upon a technique for organising the javascript on such pages. Consider an application that has three buttons: red, yellow and green. When one of the buttons is clicked an rectangle is coloured according to the selection. The UI design will be as follows: Here is the demo. The basic ......

Posted On Wednesday, August 25, 2010 10:43 AM

A Criticism of NHibernate
In a recent podcast Scott Hanselman accurately, and delicately, exposed some of the weaknesses of NHibernate. Scott focused on the difficulty of getting started with NHibernate, referring to the number of assemblies required, and on the oversupply of choice that plagues the NHibernate user, such as with mapping and query options. The best products require a strong leader, with a singular vision and clear purpose. In contrast, NHibernate appears to have been assembled by a committee divided by space, ......

Posted On Thursday, August 19, 2010 5:53 PM

Copyright © Liam McLennan | Powered by: