jimwang19 / sutekishop

Automatically exported from code.google.com/p/sutekishop
0 stars 0 forks source link

/report/Orders.csv throws NHibernate Linq error #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Navigate to /report/Orders.csv

What is the expected output? What do you see instead?
- A CSV file of all orders
- But throws an exception:

could not resolve property: Total of: Suteki.Shop.Order 
[.Select(NHibernate.Linq.NhQueryable`1[Suteki.Shop.Order], Quote((o, ) => (new 
<>f__AnonymousType8`5(o.Id, o.Email, o.OrderStatus.Name, o.CreatedDate, 
o.Total.Amount, ))), )]

Total uses the new Money type. The NHibernate Linq provider doesn't know what 
to do with this.

Original issue reported on code.google.com by mikehad...@googlemail.com on 7 Feb 2011 at 11:26

GoogleCodeExporter commented 8 years ago
Fixed r477

Original comment by mikehad...@googlemail.com on 9 Feb 2011 at 11:12