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 Articles