I get the following Nhiberante error, but have no idea why:
could not execute query [ select attachment0_.AttachmentId as
Attachme1_9_, attachment0_.Name as Name9_, attachment0_.IconUrl as
IconUrl9_, attachment0_.UserId as UserId9_,
attachment0_.AttachmentTypeId as Attachme6_9_, attachment0_.IsDeleted
as IsDeleted9_, attachment0_.ArrivalTime as ArrivalT8_9_,
attachment0_.LocationId as LocationId9_ from Attachment_Attachment
attachment0_ where attachment0_.DYNAMIC_TYPE=’Attachment’ and 1=0 ]
[SQL: select attachment0_.AttachmentId as Attachme1_9_,
attachment0_.Name as Name9_, attachment0_.IconUrl as IconUrl9_,
attachment0_.UserId as UserId9_, attachment0_.AttachmentTypeId as
Attachme6_9_, attachment0_.IsDeleted as IsDeleted9_,
attachment0_.ArrivalTime as ArrivalT8_9_, attachment0_.LocationId as
LocationId9_ from Attachment_Attachment attachment0_ where
attachment0_.DYNAMIC_TYPE=’Attachment’ and 1=0]
Update:
inner exception:
Failed to convert parameter value from a WhereSelectListIterator`2 to a Guid.
My query:
x => locationsIds.Contains(x.LocationId)
Check the
InnerException. I’m sure it will point you to the correct place.