我得到以下Nhiberante錯誤,但不知道爲什麼:無法執行NHibernate的查詢
無法執行查詢[選擇attachment0_.AttachmentId爲 Attachme1_9_,attachment0_.Name爲Name9_,attachment0_.IconUrl爲 IconUrl9_,attachment0_.UserId如UserId9_, attachment0_.AttachmentTypeId如Attachme6_9_,attachment0_.IsDeleted 如IsDeleted9_,attachment0_.ArrivalTime如ArrivalT8_9_, attachment0_.LocationId如LocationId9_從Attachment_Attachment attachment0_其中attachment0_.DYNAMIC_TYPE = '附件' 和1 = 0 ] [SQL:選擇attachment0_.AttachmentId如Attachme1_9_, attachment0_.Name如Name9_,attachment0_.IconUrl如IconUrl9_, attachment0_.UserId如UserId9_,attachment0_.AttachmentTypeId如 Attachme6_9_,attachment0_.IsDeleted如IsDeleted9_, attachment0_.ArrivalTime如ArrivalT8_9_ ,attachment0_.LocationId從Attachment_Attachment attachment0_其中 attachment0_.DYNAMIC_TYPE = '附件' 和1 = 0]
更新 LocationId9_:
內部異常:
Failed to convert parameter value from a WhereSelectListIterator`2 to a Guid.
我的查詢:
x => locationsIds.Contains(x.LocationId)
檢查InnerException – 2012-03-23 22:02:46
這是沒有足夠的信息去,請提供更多... – Rippo 2012-03-24 06:58:25
無法將參數值從WhereSelectListIterator'2轉換爲Guid。 – 2012-03-28 20:25:24