title: ObjectContext.ExecuteStoreCommand doesn't recognise parameter
body: <p>What am I doing wrong here?</p>
  <pre><code>...
  using (var ctx = ObjectContextManager&lt;MyDataContext&gt;.GetManager(&quot;MyDataContext&quot;))
  {
      var idsToUpdate = &quot;2,3&quot;;
  
      var parameters = new[]
      {
           new SqlParameter(&quot;DesiredEndDate&quot;, SqlDbType.DateTime).Value = newUpperLimit,
           new SqlParameter(&quot;TasksToUpdate&quot;, SqlDbType.NVarChar).Value = idsToUpdate
      };
  
      ctx.ObjectContext.ExecuteStoreCommand(&quot;UPDATE dbo.Tasks SET DesiredEndDate = @DesiredEndDate WHERE Id IN (SELECT Id FROM dbo.fn_Split(@TasksToUpdate, N','))&quot;, parameters);
  
      ctx.ObjectContext.SaveChanges();
  }
  ...
  </code></pre>
  <p>I get the error</p>
  <blockquote>
  <p>Must declare the scalar variable &quot;@DesiredEndDate&quot;.</p>
  <p>Must declare the scalar variable &quot;@TasksToUpdate&quot;.</p>
  </blockquote>
  <p>But I cannot see what is wrong with my code :/</p>