Please help by voting on this problem for the solution to come in the next 
release of NHibernate.
It is a serious problem that makes it impossible to use the cache system.

To vote is very fast, simply register, the link is this;
https://nhibernate.jira.com/browse/NH-2856

Details of the problem:
Linq queries that use a fetch statement and are .Cacheable 

                var query = session.Query<Person>() 
                    .Fetch(p => p.Address) 
                    .Cacheable(); 

result in an exception. 

NHibernate.TypeMismatchException : Provided id of the wrong type. Expected: 
System.Int32, got System.Object[] 

This issue is related to NH2673 which corrects a similar exception when 
persisting a query to cache. However when the query is retrieved from the 
cache a similar exception occurs because only the Put and not Get of the 
caching system was fixed.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/hesGMjDU71wJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to