I’m trying to put together a presentation for my local .NET user group on NHibernate. I want to demonstrate how one might convert an existing application’s data access layer to use NHibernate, but first I need an application to convert.
What would be a good example domain that would allow me to demonstrate the main features of the ORM? It needs to be easy enough for the listeners to understand, but include things like an inherited class or two to show how NHibernate handles that.
Current Ideas:
- Blog -overused, no obvious inheritance relationships?
- Auction Site – used in NHibernate in Action – would need to rewrite DAL to use stored procedures via ADO to demonstrate conversion
- Online Store
Any ideas?
How about a company address book application?
Peoplehave obvious properties andContactListsare a collection ofPeople.PeoplehaveAddresses. Calling aContactListis clearly not possible; however sending messages to a person and sending to aContactListshould have the same exposed API to anSmtpClient.This example allows you to illustrate:
FirstName, etc)First,Middle,Last, andNicknamecolumns in aNameclass)Person->Address)ContactList<->Person)