Showing related tags and posts accross the entire site.
-
I blogged last year last year about Overriding Equals and GetHashCode . You provide an Equals override if you want to provide value equality on your business objects and normally, you'd use the logical key fields (DB lingo) for comparison. GetHashCode is used by ISet (ListSet), if you used NHibernate...
-
I was running a test today which uses NHibernate to load data from the database and I got this result. The inner exception details are below: Inner Exception System.TypeInitializationException Message: The type initializer for 'NHibernate.Cfg.Configuration' threw an exception. Source: NHibernate...
-
one my my officemate who haven't used NHibernate brought up the idea of caching of ORMs. i have no idea about caching resultsets from the side of NHibernate until i consulted the docs . Turns out that the caching feature is an addin to NHibernate (similar to the nullables). Basically caching will be...
-
NHibernate is currently under development and one of the things that they have not really furnished are the exception messages presented when something goes wrong. i was in a hurry yesterday afternoon when i found out that the class i was working on was the wrong one so i have to transfer the codes that...
-
I've been trying to learn this NHibernate O/R mapper but the documentation for NHibernate is still incomplete. I was reading the incomplete docs weeks ago when i ran into this statements: Implicit polymorphism means that instances of the class will be returned by a query that names any superclass or...