TWith2Sugars
TWith2Sugars

Reputation: 3434

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

Upvotes: 4

Views: 504

Answers (1)

user1151
user1151

Reputation:

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

Upvotes: 5

Related Questions