title: Error importing SQL Server function in Entity Framework ADO.NET Entity Data Model
body: <p>My project is based on ADO.NET Entity Data Model and I use Entity Framework 6.0.</p>
  
  <p>Well, I received this error when I import function in my project:</p>
  
  <blockquote>
    <p>Error 6046: Unable to generate function import return type of the store function 'fn_PWDCOMPARE'. The store function will be ignored and the function import will not be generated.</p>
  </blockquote>
  
  <p>I don't get an error if I import a procedure.</p>
  
  <p>The function is:</p>
  
  <pre><code>CREATE FUNCTION fn_PWDCOMPARE (@pwd NVARCHAR(MAX),@pwdhash NVARCHAR(MAX))
  RETURNS BIT
  BEGIN
    RETURN PWDCOMPARE(@pwd, @pwdhash)
  END
  </code></pre>