-
In some cases our clients has to use the same database user id in each connection, so they can use audit and security features of their database system (and their DBAs will be happy [:)]). To do that in Nh We can use the ConnectionProvider facility. Just derive a class from the standard DriverConnectionProvider...
-
Sometimes you'd want to map an Enum field to the DB. The default behaviour of NHibernate is to persist the Enum value ToString()'s output to the DB. But at times you'd rather persist a custom value for each enum value. Popular example will be: namespace Model { public enum SexType { Male...