Browse by Tags
All Tags »
NHibernate (
RSS)
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...
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...
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...
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...
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...