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

    .net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

    iphone - Smoothing a rounded stroke in Core Graphics -

    c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -