Hi,
I've have a problem with the following query:

(p=>p.BingoPlayerID==bingoPlayerID &&
((noteTypeList == null || noteTypeList.Count == 0) ||
(noteTypeList.Contains((int)p.NoteType))) &&
p.Date>=this.GetBingoPlayerNotesRequest.NoteDateFrom);

I'me getting the following exception:

NHibernate.QueryException: An empty parameter-list generate wrong SQL;
parameter name 'p3'

I've susspected the contains condition, but if I remove the
'(noteTypeList == null || noteTypeList.Count == 0)' condition
and leave the following query it works:

(p => p.BingoPlayerID == bingoPlayerID &&
(noteTypeList.Contains((int)p.NoteType)) &&
 p.Date >= this.GetBingoPlayerNotesRequest.NoteDateFrom);

Can someone help me?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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