I have some instances for reporting where executing sprocs is easier and simpler than complicated QueryOver statements.
I have a DTO, not an entity, that represents the data returned from the query and want to populate the results of the query into the DTO. I am using named queries and session.GetNamedQuery() to execute the query.
- Do I have to create mapping files for the DTO?
- If so, is is possible to let NHibernate/FluentNHibernate know that it should not create tables for the DTO? My units tests drop and create the schema using NH's SchemaExport tool and don't want to create tables for the DTO's
Please note I don't want to project a QueryOver/Linq query using Projections and AliasToBean - I need to execute the stored procedure.
Cheers