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 =, name = })

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

Related Query

More Query from same tag