-
I have used current session contexts in web applications with the ManagedWebContext class. I wanted to get this working in a non-asp.net environment though. And I wanted to keep the UI responsive, which means pushing as much as possible to the background. I took a queue from Jeremy Miller's article...
-
The following extension methods to ISession allow finding if a property or entity has changed, and the original value of a property. public static class SessionExtensions { public static Boolean IsDirtyEntity(this ISession session, Object entity) { String className = NHibernateProxyHelper.GuessClass...
-
The Scenario You have a single class which you must map to both a table and a database view (or perhaps another table). The view is returning records from the table itself, usually filtered, and the view may have more or less columns than the table. A more practical example is a multi tenant database...