A comprehensive example would go a long way. I have found no tutorial on creating a IResultTransformer. I have some examples, but none of them translate a query result field to an object property, and NONE of them explain how to go from CreateSqlQuery to List<myObject>. Perhaps it's my newness to NH, or poor google skills, but I am just getting more mired here.
On Monday, January 19, 2015 at 11:10:15 PM UTC-8, Ricardo Peres wrote: > > You either need to have mappings and call List<T>() to return a collection > of the class that maps to the SQL of your query or you can specify a custom > result transformer that translates the results to whatever you want. See > method IQuery.SetResultTransformer() and the IResultTransformer interface. > > RP -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
