title: Function Imports in Entity Model with a non-Entity Return Type
body: <p>I have a stored procedure in my Entity Data Model and added it to the function imports.</p>
  
  <p>Problem is... Visual Studio generates the function code in the model's code-behind if and only if I specify the return to be an entity type.  <strong>Scalar and null return types do not work.  Visual Studio does not generate the function code when I choose them.</strong></p>
  
  <p>Is there something I am missing, or is this a bug?<br>
  Any work-arounds? </p>
  
  <p><hr />
  Using Visual Studio 2008 v9.0.30729.1 SP (Service Pack 1)</p>