NOTE: This is now being updated to cover NHibernate 2.0.0.X so please check back if interested in new approaches to this. The previous solution posted is now outdated and I do not recommend using it.

I will soon be posting a new article which (in my opinion) could be far more useful to everyone then this article ever was as it:

  • Has far greater scope and use as Is a ‘domain collection’ engine and I believe the first solution to something I have been struggling with for years: The pain of building clean, quick web views in the world of Ajax, controls that expect datasets, and programmers not understanding ORM. It so far works with NHIbernate (and ActiveRecord) and I am finalizing Linq to Entity support
  • Leverages advanced .NET intrinsic’s (CustomTypeDescriptors, etc…) that are leveraged by the third-part component community
  • Support any ‘domain projection/entity set’ operation – the same engine backs both bindable sets and non-bindable sets.. You just pass the HQL into the user control in VS 2005/2008

Also stop by the new global repository I am bringing up with some others around ‘best practices’ for domain driven (obsessed) work. This has a .NET 3.5 focus (as we will deeply discuss linq I am planning) however it is an architects site, so we will cover mono, java, and likely 50% of the content will be platform agnostic.More to come!

UPDATE: Billy McCafferty has done a fantastic job picking up where I barely get started.

2 Comments

  1. I tried implementing it and noticed that it would fail because _domainbadwrapped was never getting set propery. I pretty much folllowed you had described here so do you know what I could be missing?

  2. You are correct. Check out the update code (which is far far better in my experience) on http://www.domaindotnet.com

    FYI that site is a new global resource for advanced content (code, samples, apps, etc.) for all things ‘alt.net’.

    Damon


Post a Comment