I am new to NHibernate, so this is the main question.
When retrieving data from a database through an NHibernate session, I only did this using Id so far, for example. eg:
var customer = Session.Get<Customer>(customerId);
But how do I get an object based on a property that is not an identifier? For instance. pull the client out by searching in the Name property. This may return 0-n responses, so I assume I will return the list to me?
source
share