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 IResultTransformer your query SetResultTransformer () , the columns will be called with two lists containing names and values.

Makes up

  • 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

    Popular posts from this blog

    sql - dynamically varied number of conditions in the 'where' statement using LINQ -

    asp.net mvc - Dynamically Generated Ajax.BeginForm -

    Debug on symbian -