Fetching collections with NHibernate, a mistake a I always do!

I did it again! That’s why I’m writing this blog post...I do it almost every time and the main reason is: trying to optimize NHibernate queries without thinking. As the title of the posts says the problem here is related to fetching the data of diff


Linq to NHibernate - String.Equals with StringComparison option

A couple of days ago Matteo Migliore asked me a question about why String.Equals(string, StringComparison) was not supported in Linq to NHibernate while it was in Entity Framework. My first answer was that the Linq to NHibernate implementation might


NHibernate.Envers - Querying - part 1

We’ve already saw how to setup NHibernate.Envers, how to configure and how to create the schema for it (NHibernate.Envers - a quick introduction). To query for our revision entities we need to use the IAuditReader interface, we have two ways to obtai


NHibernate.Envers - a quick introduction

Recently I had the need to introduce a sort of ‘Entity Versioning’ in a portion of my applications, the whole data access strategy was realized using NHibernate + XML / ConfORM mappings. I started the thing introducing an poor auditing system using


NHibernate Mapping Explorer Preview 2

In the past week I had the chance to make some improvements and fixes to my NHibernate ConfORM Mapping Explorer utility (more info on my previous post: http://www.primordialcode.com/blog/post/nhibernate-conform-mapping-explorer), so here are some of


NHibernate ConfORM Mapping Explorer

Since when I started using ConfORM to map my domain entities I felt the need to have something that showed me what type of mappings it generates; you can easily write tests and export the XML generated mappings (you have examples on how to do this in


How to modify NHibernate mappings at Runtime

When you have the need to modify or change your NHibernate mappings at runtime the obvious choice would be to go for one of a new generation mapping engine (like ConfORM, Fluent NHibernate, or anything else), but what about you plain good old XML map


Hands on ConfORM: our first pattern appliers (how to customize tables and properties names)

In the previous articles of this series we saw how to initialize the ConfORM engine and how we can use it in an already existing project that make use of XML files to map the domain. This time I would like to show you how you can customize some aspe


NHibernate Linq provider: dynamic filtering using lambda expressions

Working with the new NHibernate Linq provider I needed a simple way to dynamically buildup a ‘filtering’ lambda expression to be used as the where clause in a select operation; nothing you cannot already do with the ICriteria/QueryOver API or with HQ


Hands on ConfORM: mixed mapping techniques

In the last post we saw how to put ConfORM in action, this time..before digging into what you can do with it I would like to solve a problem that you (like me) will surely have to face if you plan to use ConfORM in a pre-existing project. Let’s cons


 1 di 3   1  »  Last »