I'm currently trying to pass in multiple parameters into an ExecuteQuery() call that is executing a stored procedure. My stored procedure expects 3 parameters of the following types (bit, varchar, int). I attempted to pass the parameters in like this but they seem to just be ignored by the stored procedure and it returns all of the results instead of filtering the results based on the values I pass in. Oddly enough when I pass the values in through SSMS it returns the expected result.
string query = string.Format("EXEC {0}", storedProcName);
Context.ExecuteQuery(returnType, query, new object[]{false, "test", 0});