Search code examples
linqsubsonic3parameterized

SubSonic 3 and Linq Parameterized Queries


We are currently using SubSonic 3.0.0.2 and playing about with the Linq for it, we've noticed that the underlying SQL is not parameterized.

I'm aware that the query tool is and we can work with that but I'm just curious if having parameterized with Linq is possible?

Am I missing something? or is this not yet implemented in SubSonic.

Cheers Tony


Solution

  • It is parameterized - just not for constant values (stuff you embed in code). If you use a variable then it will be.