title: What's the correct way to use ObjectResult with input parameters to StoredProcedure in Entity Framework? (Output mapped to Complex Type Property)
body: <p>I have several listboxes which have a SelectedItem property I intend to use as input parameters to execute my stored procedure in Entity Framework.</p>
  
  <p>I now realize my only hope for easily returning entity objects as the result of my Stored Procedure is to map the Stored Procedure (or Function Import) to a complex type which matches the output. (Used Julie Lerman's post <a href="http://thedatafarm.com/blog/data-access/a-big-step-for-stored-procedures-in-ef4/" rel="nofollow">here</a> to make this decision.)</p>
  
  <p>However, I need help using ObjectResult with EntityFramework to capture my listbox SelectedItem properties and feed them to the Stored Procedure (and thus output my complex type entities). Is anyone familiar with this process?</p>
  
  <p>ANY help would be appreciated (guesses included). Please let me know if I can be more clear.</p>