title: execute stored proc in ExecuteStoreQuery EF. is this a bug in EF?
body: <p>trying to execute the stored proc in EF using the following code:</p>
  
  <pre><code>var params = new object[] {new SqlParameter("@FirstName", "Bob")};
  return this._repositoryContext.ObjectContext.ExecuteStoreQuery&lt;ResultType&gt;("GetByName", params);
  </code></pre>
  
  <p>but keep getting this error:</p>
  
  <blockquote>
    <p>Procedure or function 'GetByName' expects parameter '@FirstName',
    which was not supplied.</p>
  </blockquote>
  
  <p>and from sql profiler:</p>
  
  <pre><code>exec sp_executesql N'GetByName',N'@FirstName nvarchar(100),@FirstName=N'Bob'
  </code></pre>
  
  <p>what is wrong wit the above ExecuteStoreQuery code?</p>