I know that EF4 does not support custom table types (yet). I need to write a query that takes a list of pairs <product_code, quantity> and returns a set of records with product_code and price for each passed product_code based on quantity . What is my best option with EF4 to simulate this? The calculation in the database to get the price is quite complicated, and there are many products, which means that most of the actions must be performed on the server side. (For example, I cannot first get a complete list of prices from the server, and then filter on the products I need on the client. I also can not use the amount for calculation on the client, which must be transferred to the server and processed there). Any thoughts are welcome.
sql-server sql-server-2008 entity-framework entity-framework-4
Andrew Savinykh May 21 '11 at 19:50 2011-05-21 19:50
source share