-
I'm new to NHibernate, So I'm not sure if I this is even the place to ask questions. But here goes. This is my problem: I am building a website using Orchard CMS. All the Orchard tables are mapped by NHibernate. I also have tables in the same database that are NOT mapped by NHibernate. These...
-
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...
-
UPDATE: now deals properly with proxies. 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) { ISessionImplementor...
-
Why would you want to use this source? You'll want to use this source if your using NHibernate and need your entities to maintain their state through long conversations, over multiple NHibernate sessions. You might also want to use it if you want built in auditing power and general state oriented...
-
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...