ravendb - Raven Index creation gets compilation error CS1977 when using FindLastIndex -


I am trying to write an index that looks at our logs that are looking for those institutions that are unavailable. The process is but not the second part of the process, which then provides them. Our import process is first, then our clean process is considered to be available to the organizations that went through our clean process.

I came up with this potential map:

  AddMap & lt; EntityLog & gt; (Docs = & gt; docs. Where (Doctor => doc.Details! = Null). Where (Doctor => doc.Details.Any (d = & gt; d.QueueMessage! = Null & amp; ; & Amp; amp; amp; amp; amp; amp; amp; amp; D. QimeszotadoConnectes (JobTypeEyPort) & amp; amp;; D. Finnish! = Null). Where (Doctor => doc.Details.Any (d = & gt; Qimes! = Null & amp; amp; amp; amp;; d.QueueMessage.JobsToDo.Contains (JobType.Clean) & amp; D.Finished! = Null) where (doctor => doc.Details .FindLastIndex (d = & gt; D. QueMessage.JobsToDo. (JobType. Clean & amp; amp;; D.Finished! = Null) & lt; doc.Details.FindLastIndex (d = & gt; Qimeszj.jobsdodo.contount (jiptype import ) & Select! (Found = =)). (Found => New {found.EntityID, user = found.find Details (D => D.User)}) );  

It is compiled in VS, but when I try to create this index, I get the following error:

CS1977 "A lambda expression Can not be used as an argument for dynamically transmitted operation without any representative or expression tree type "

some selective From the note, it seems to me that where I am using FindLastIndex and from research, I know that the error of this compiler occurs when you are trying to do stuff with items that you do not expect are doing. Viewing RAVEN-produced code, it uses very dynamic, so I'm making some related estimates about it. I tried to use it as an alternative to this line:

 . Where (Doctor => Array.FindLastIndex (doc.Details.ToArray (), d = & gt; d.QueueMessage.JobsToDo. (JobType Clean) & amp; amp; D.Finished! = Null) & Lt; Array.FindLastIndex (doc.Details.ToArray (), d = & gt; D. QueMessage.JobsToDo.Contains (JobType.Import) & amp;  

But no happiness, I still get the same error message.

How do I work out this code? Or do I need to take a completely different approach?

Any help appreciated.

Just get the same property on your EntityLog FindLastIndex uses , then the result of that information that will be serialized and easy to find in the database.

  Public category fu {public list & lt; Phone & gt; Phone {set; Set; } Receive Public Phone Element {{Return Phones. Single default (x = & gt; x.Primary == true))}}}  

Note, if EntityLog is an already present document archive, You must load each log and save it back to the database.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -