Browse by Tags

Resharper's GetHashCode() and the number 29
Published 07-16-2007 5:30 PM | jokiz
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...
Filed under: , ,
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Published 06-28-2007 6:14 PM | jokiz
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'...
Filed under: , ,
NHibernate, unicodes and index
Published 05-11-2007 4:06 PM | jokiz
My boss is optimizing one of our previous projects. He was specifically looking at the queries used by NHibernate and he noticed that the generated sp_executesql queries are using nvarchar parameters. The query was just a filter for just one column (Position...
Filed under: ,
NHibernate 1.2 is out
Published 05-04-2007 4:48 PM | jokiz
NHibernate 1.2 whose core functionality is support for generics is now available. I immediately downloaded the binaries and test it out on my test project at work (for the first time). I did some modifications (basically changing from IList, ISet to their...
Filed under:
An address incompatible with the requested protocol was used
Published 12-05-2006 11:34 PM | jokiz
i was trying out NHibernate with MySQL when i get this error message when opening a connection. problem is, i don't get the said error when i unplug my LAN cable which connects to my crappy Globe DSL (still crappy after two weeks, grrrr). i wonder why...
Filed under: ,
NHibernate Caches
Published 08-23-2006 2:27 PM | jokiz
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...
Filed under: , ,
Enabling log4net logging for NHibernate
Published 06-13-2006 3:52 PM | jokiz
recently, i blogged about an issue on NHibernate and i am very thankful to receive an email from ayende - developer behind NHibernate Query Analyzer. In his email, he told me that NHibernate was able to recognize the fault in the mapping as he can see...
Filed under: ,
NHibernate exceptions
Published 06-08-2006 1:40 PM | jokiz
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...
Filed under: , ,
NHibernate Documentation
Published 03-27-2006 8:28 PM | jokiz
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...
Filed under: ,