c# - Obscure "Unsupported overload used for query operator 'Where'." -


i'm using linqpad , linqkit try learn more linq construct complex queries, seem stuck on simple queries. haven't found solution error in question description when input following -simple- expression:

qhpatients.asexpandable().where(p =>     p.qhencounters.where(predicatebuilder.true<qhencounter>().compile()).any()) 

if run code in vs following error instead: "system.invalidoperationexception : internal .net framework data provider error 1025"

p.qhencounters.where(predicatebuilder.true<qhencounter>().compile()) 

without knowing actual types use, guess need either call .asexpandable() on qhencounters or omit .compile() call.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -