Wiki Link: [discussion:3629]
Support for compiled queries? 

Jul 7 2010 at 5:45 PM
Would it be possible to use Linq to SQL CompiledQuery objects with Expression Tree Serialization?

The scenario is: you want to have a DAL that is accessible via WCF, but still has the performance benefits of CompiledQuery.

You want to be able to define a parameterized query in a business layer or presentation layer, and register it once in the DAL, which would then compile the query and return some sort of token or hash. After that business layer or presentation layer would be able to invoke the query repeatedly, but with different parameter values each time.

Page view tracker