ExecuteStoreQuery passing parameter to SQL statement
<p>Could someone help with passing a parameter object into my <code>ExecuteStoreQuery</code>. I'm executing this from my Entities db and then creating my procedure on the fly is this possible and is my SQL correct. I need to pass a <code>Id</code> parameter value into my SQL statement</p>

<pre><code>var node = db.ExecuteStoreQuery&lt;Node&gt;(@"
    @Id int // not sure about this declaration for parameter    

    with c as (
        select Id, Name, ParentId,[0] as level
        from Department d
    union all
        select d.Id, d.Name, d.ParentId, [level] + 1
        from Department d
        join c on d.ParentId = c.Id)
    select * from c where c.Id = @Id"                                                         
"Departments", 
System.Data.Objects.MergeOption.NoTracking, 
new object{ Id: department.Id} // &lt;--parameter object not working);               
</code></pre>
