vb.net - Querying an Entity that has a varbinary field with LINQ -


when try query entity has varbinary field in getting error:

"the linq expression node type 'arrayindex' not supported in linq entities."

here query:

dim query = entity in db.entity         entity.id= id                   select entity.varbinaryfield   if query.firstordefault isnot nothing       bytes = query.first.toarray       return file(bytes, system.net.mime.mediatypenames.application.octet, "test")   end if 

the error gets generated when check query isnot nothing.

any advice appreciated!

thank you!

i had few other parameters in linq query didn't include... parameters being pulled array throwing error not varbinary field...


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -