title: Is it possible to use output parameters with ExecuteQuery<T>?
body: <p>Normally, when you want to call a stored procedure directly through Linq to Sql, you can use the ExecuteQuery method:</p>
  
  <pre><code>result = dc.ExecuteQuery&lt;MyTable&gt;("Exec myStoredProcedure");
  </code></pre>
  
  <p>And if you need to call it with parameters, you can add them through string substitution:</p>
  
  <pre><code>string query = "Exec myStoredProcedure ";
  for (int i = 0; i &lt; parameters.Count - 1; i++) {
    query += " {" + i + "},";
  }
  query = query.TrimEnd(',');
  result = dc.ExecuteQuery&lt;MyTable&gt;(query, parameters);
  </code></pre>
  
  <p>But what if one of the parameters is an output variable? Is it possible to get the value back after the procedure has been run?</p>