I'm trying to make my code more dynamic. So I currently call the a stored procedure, with some strongly typed parameters like this
var results = datacontext.spReturnUsers(txtUserId.Text, txtUserFirstName.Text, txtUserLastName.Text);
Now what I would like to be able to do is loop through and add the parameters dynamically. So if tomorrow I add another search field, like User Address, or something to my panel then I can just loop through the controls and add the parameters in dynamically and not have to come back in and change the strongly typed Stored Procedure call.
Something like before LINQ you would do with a parameters.add() on your stored procedure.
Is there any way to accomplish this will still using LINQ to SQL?