I have a compiled request that works fine. I pass him the product_id and return the product view information for this product.
Can this compiled query be used as a source for a subquery? Example:
from cat in ctx.cat_table join prod in ctx.prod_table on cat.category_id equals prod.category_id select new { cat_id = cat.category_id, prod_id = prod.product_id, name = prod.product_name, descript = prod.product_description, price = prod.price, reviews = (from mcq in mycompiledquery(ctx, prod.product_id) select new { rating = mcq.review_rating, review = mcq.review_text } }
My early attempts to do something like this cause an error:
LINQ node type expression 'Invoke' is not supported in LINQ to Entities
One of the alternatives that I was thinking about is to replace my compiled query with an SQL representation, but I'm concerned about the negative performance hit.
Thanks so much for any suggestions you can offer.
source share