Ramon Smits

Tell me your secrets and i'll tell you mine

Recent Posts

Tags

Community

Email Notifications

Patterns & Practices / Guidelines

EntLib

Nant

Blogs that I monitor

Archives


Browse by Tags

All Tags » NHibernate (RSS)
WCF and DateTime.Kind pitfall
At my job ( Company Webcast ) we have several API’s for our customers to use. One of those API’s allow webcasts to be created and modified and that interface has data containing dates. Our platform works with UTC date time’s as we are...
How to perform a not equals comparison with NHibernate criteria api
I often hear that NHibernate is not usable for selecting records as it is not possible to perform a not equal comparison with the criteria api. I must admin that it took me a while before I found out but it really is more logical when you know. Lets take...
Speeding up startup time for applications that use NHibernate
I just read a very cool NHibernate trick to let your application start faster that was mentioned by Ricardo Peres: Configuration cfg = new Configuration().Configure(); IFormatter serializer = new BinaryFormatter(); using (Stream stream = File.OpenWrite...
NHibernate bag did not delete records when IList.Clear() was called
I was having a problem where NHibernate did not automatically delete childs if a collection was emptied by calling IList.Clear() like in the following code example: var s = GetSession(); var parent = s.Get<Parent>(1); parent.Childs.Clear(); What...
NHibernate implicit join quirk
Recently I had a problem where in an HQL query the result contained duplicates. I used implicit joins in the my query and it looked like the following: from Order o where (o.Code like :literal OR o.CustomData like :literal OR o.Customer.Code like :literal...