public void RunQuery() {
var query = documentDbClient
.CreateDocumentQuery<MyDocument>()
.Where(doc => doc != null);
var results = query.ToArray()
}
public void RunQuery()
{
var query = documentDbClient
.CreateDocumentQuery<MyDocument>()
.Where(doc => GetDoc(doc) != null);
var results = query.ToArray()
}
public static MyDocument GetDoc(MyDocument myDocument)
{
return myDocument;
}
If the azure db provider thingy builds an IQueryable, then testing for null is probably translated to something handled at the server, whereas using your own method either forces client execution or worse, exposes a bug in the LINQ provider.
Can you give the stack frame / line the NRE is coming from?
--
You received this message because you are subscribed to the Google Groups "altnetisrael" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altnetisrael...@googlegroups.com.
To post to this group, send email to altnet...@googlegroups.com.
Visit this group at https://groups.google.com/group/altnetisrael.
For more options, visit https://groups.google.com/d/optout.