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.
Source: stackoverflow.com
Related Query
- RavenDB: Returning objects with null values for properties
- LINQ query to find objects in list with equal values for one of their properties
- Get objects from dictionary with equal properties values for every Key
- Checking a list with null values for duplicates in C#
- sorting list of objects with null properties using linq
- Issue with query returning null before I can check for null
- LINQ query returning null for nested objects in Entity DB
- Check if dictionary with objects for it's values contains two objects with same property
- Issue with ViewModel returning null values to View
- Saved projection expression for re-use in different linq expressions with two source objects
- Proper Linq Query for objects with many to many relation ship generated with code first entity framework
- Merge two objects and remove dupplicated properties for myObject in IEnumerable<myObject> with Linq (C#)
- Paging with LINQ for objects
- LINQ Order By Descending with Null Values on Bottom
- Sorting a list with null values
- Linq query with multiple Contains/Any for RavenDB
- C# re-use LINQ expression for different properties with same type
- How can I set properties on all items from a linq query with values from another object that is also pulled from a query?
- Dynamic linq order by on nested property with null properties
- Comparing 2 objects and retrieve a list of fields with different values
- Automatically checking for NULL relationships with LINQ queries
- Null Dapper.net query still returning Null Reference Exception with FirstOrDefault()
- Getting unique values from a list of objects with a List<string> as a property
- Sum a collection of objects which contain numeric properties only with LINQ
- C# LINQ Select objects with the same value of one property join values of other
- Linq to Dictionary<string, List<string>> with Null values
- Joining two tables with LINQ while also returning null records from the second table
- How to GroupBy objects by numeric values with tolerance factor?
- C# Create object with dynamic properties : LINQ select List<object> values by property names array
- Returning values with a Func Delegate
More Query from same tag
- .Net Framework DataTable.Select(String) method when the filter expression contains ' or "
- C# LINQ GroupBy error Only one expression can be specified in the select list
- Recompile Query-Hint on a System.Data.Linq.DataContext object
- C# code for equivalent LINQ query
- better way to do a linq query - need to reach foreign keyed data by traversing the data structure
- How do you divide a property with linq expression
- LINQ - Select all in parent-child hierarchy
- Linq2db entity framework update query for dynamic table and column
- Fill in property in list from another list by joining them
- Find turning points in rows with SQL or LINQ
- optimal way to summarize data results
- get a List of Max values across a list of lists
- The best way to get read only data using EF and support sporting/searching/filtering
- Select values from two tables using “WHERE NOT IN” and DISTINCT in LINQ in Linq to Sql
- Linq query where First() appears to return null when results are not found
- Entity Framework: select property as Object
- Web API Dynamic LINQ Search
- Zip multiple/abitrary number of enumerables in C#
- Adding WHERE statements to a LINQ lambda expression
- FirstOrDefault Behavior with Int and Int?
- Can you return a property of a POCO object from Linq by determining name of it?
- How can we return an empty collection using yield?
- XML.Linq - get value based on another value
- Value objects are messing with Ef core linq query
- Having trouble in retrieving data from database in asp.net mvc
- Automatically add some Where clauses to a Linq Expression Tree
- Entity framework and local cache of database tables
- LINQ with Entity Framework, getting calculated sum
- LINQ returning only rows without any null fields, how to get the null fields too?
- Linq projection nested LIST<T> property