score:1

if you change the names of your properties in the view model to the same as the workflow class it will work.

model = session.query<workflow>()
        .select(w => new workflowindexviewmodel { id = w.id, name = w.name })
        .toarray();

but that is just a workaround to what seems to be a bug or a limitation.


Related Query

More Query from same tag