How would the following sql statement translate to a linq query?
select ID, Price, dbo.fGetText(DescriptionID, defaultLanguage, currentUserLanguage) from Products
The UDF fGetText is quite substantial and used throughout the code base, so it needs to be encapsulated (as a UDF or otherwise, perhaps a Linq Expression).
Extra round trips to the database server are not a option. There should only be one query, retrieving 3 fields.
Many thanks in advance for your help. It is greatly appreciated.
Here is the MSDN article:
How to: Call User-Defined Functions Inline (LINQ to SQL)
A note from the same page:
Also, take a look at this 13 min screencast.