I am using nservicebus to handle commands. During a handler i use nhibernate to load my domain object. I use session.get for this. Is there way to provide a correct fetching strategy based on which handler I am executing?
I saw hibernate had the option to set a fetching mode on the session before doing the get, but could not locate this in nh3.2
You can specify lazy/eager in your mappings but you will have to use different mappings for each handler then, however why not use a query instead of session.Get and specify the fetching strategies there?