title: WCF Data Service with EF fails to expose imported functions
body: <p>(I am also using .NET 4.0 and VS 2010.)</p>
  
  <p>I created a function import returning a complex type, as explained at <a href="http://msdn.microsoft.com/en-us/library/bb896231.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb896231.aspx</a>. The function import and new complex type appear in my .edmx file and in the Designer.cs file. However, the function does not appear when I view the service in the browser, and when I add or update a service reference in the client project, the function does not appear there either - as is to be expected, given the first result.</p>
  
  <p>Creating an imported function and using it seems conceptually very simple and straightforward, and one would think it would just work, as Microsoft's step-by-step instructions appear to suggest: <a href="http://msdn.microsoft.com/en-us/library/cc716672.aspx#Y798" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc716672.aspx#Y798</a> (which article shows the SP returning entity types - I tried this also, and it doesn't work for me either).</p>
  
  <p>This blog post shows the addition of a method to the DataService class, which Microsoft's instructions omit: <a href="http://www.codegain.com/articles/wcf/miscellaneous/how-to-use-stored-procedure-in-wcf-data-service.aspx" rel="nofollow">http://www.codegain.com/articles/wcf/miscellaneous/how-to-use-stored-procedure-in-wcf-data-service.aspx</a> I tried adding one method returning a list of entity types and another returning a list of complex types, and still had no success. I still could not access the functions, either directly via the browser or from the client application via a service reference.</p>
  
  <p>Thanks in advance for any help with this.</p>