Allow use of HashSet<T> in HQL IN and Linq Contains()-queries

Description

Queries such as the below fails with "Failed to convert parameter value from a HashSet`1 to a Guid":

The generated SQL contains something like "where xxx.Id in (@p0)" with:
Name0 - Value:System.Collections.Generic.HashSet`1[System.Guid] .

So it fails to recognize the HashSet<T> as a collection that something should be expanded to separate parameters. Not sure if the problem is in the linq provider or in HQL.

Environment

None

Activity

Show:

Oskar Berggren August 15, 2014 at 2:18 PM

Yes, seems to fit.

Alex Zaytsev August 15, 2014 at 11:55 AM

Ok, it seems that it is the same as

Alex Zaytsev August 15, 2014 at 11:53 AM

, I can not reproduce it.

Duplicate

Details

Assignee

Reporter

Labels

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created August 15, 2014 at 11:17 AM
Updated August 15, 2014 at 2:19 PM
Resolved August 15, 2014 at 2:18 PM
Who's Looking?