Nhibernate: Retrieving column names from CreateSqlQuery -
When using CreateSqlQuery, is it possible to get an order list of returned column names? To use Returns a list of only object values in the list, not column aliases
If you have Makes up IResultTransformer
your query SetResultTransformer () , the columns will be called with two lists containing names and values.
AliasToBeanResultTransformer
creates an object of named type per line and sets its properties with values from the column of the same name. ToListResultTransformer
returns a value of each row.
Comments
Post a Comment