Hi there.

This bulk update query throw an exception(null reference exception):

.Where(a => a.Id.In(existingAttachments))
.Set(a => a.LastDate, dateNow)

existingAttachments is IList<long>, dateNow is captured DateTime.Now

with .Where(a => a.Id == someId) works fine.

seems that extension method "In" could not be parsed in expression tree.

asked Mar 22 '13 at 12:03

Ibanez's gravatar image


hi. it will be fixed soon. For now you can call "In" with IncludeAlgorithm.ComplexCondition argument.

(Mar 24 '13 at 15:24) proff proff's gravatar image

thanks a lot for answer. when fix is coming?

(Mar 24 '13 at 15:44) Ibanez Ibanez's gravatar image

One Answer:

fixed, but scenario with IncludeAlgorithm.TemporaryTable is not supported. Fix will be included in next version.

answered Mar 31 '13 at 16:23

proff's gravatar image


Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Mar 22 '13 at 12:03

Seen: 6,851 times

Last updated: Mar 31 '13 at 16:23

powered by OSQA