<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Can&#039;t return boolean or int (scalar values) from stored procedure Error in object mapper tool: TypeName does not contain namespace when adding stored procedure</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Can&#039;t return boolean or int (scalar values) from stored procedure Error in object mapper tool: TypeName does not contain namespace when adding stored procedure</description>
  <pubDate>Sat, 11 Apr 2026 04:53:59 -700</pubDate>
  <lastBuildDate>Thu, 14 May 2009 18:41:55 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1259</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Can&#039;t return boolean or int (scalar values) from stored procedure Error in object mapper tool: TypeName does not contain namespace when adding stored procedure : Currently, neither the Entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;PID=4538#4538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1259<br /><strong>Posted:</strong> 14-May-2009 at 6:41pm<br /><br />Currently, neither the Entity Framework nor DevForce supports returning scalars or primitive (built-in) types from a stored procedure.&nbsp; The DevForce error is unfortunately a little misleading, but if it generated successfully you would still get an error at run time.<DIV>&nbsp;</DIV><DIV>EF 4.0 (and therefore DevForce.vNext) will support scalar and primitive return types.&nbsp; </DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 14 May 2009 18:41:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;PID=4538#4538</guid>
  </item> 
  <item>
   <title>Can&#039;t return boolean or int (scalar values) from stored procedure Error in object mapper tool: TypeName does not contain namespace when adding stored procedure : (to be fair, I just checked the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;PID=4536#4536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=503" rel="nofollow">adam</a><br /><strong>Subject:</strong> 1259<br /><strong>Posted:</strong> 14-May-2009 at 12:40pm<br /><br />(to be fair, I just checked the designer.cs file that the .edmx creates, and it seems to ignore creating any code when the return type is a built in type! When I change the return type of the "function import" to be a custom entity type, it generates code in the edmx designer.cs file &#091;and likewise in the dev force designer.cs file&#093;. Does this mean that built-in types from stored procedures are not supported by Microsoft Entity Framework too????) Adam :)]]>
   </description>
   <pubDate>Thu, 14 May 2009 12:40:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;PID=4536#4536</guid>
  </item> 
  <item>
   <title>Can&#039;t return boolean or int (scalar values) from stored procedure Error in object mapper tool: TypeName does not contain namespace when adding stored procedure : Hi,  We&amp;#039;ve just added our...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;PID=4534#4534</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=503" rel="nofollow">adam</a><br /><strong>Subject:</strong> 1259<br /><strong>Posted:</strong> 14-May-2009 at 12:08pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>We've just added our first stored procedure to our edmx file (we used the "function import" feature and set the return type to Boolean). It is a fairly straightforward stored proc that returns a single column and single row (i.e., a scalar value). The value in that one column is a boolean (bit). The .edmx file translates this into a return type of Collection(Boolean) when we look at the xml... When saving the .edmx, we said "OK" to update our DevForce model.</DIV><DIV>&nbsp;</DIV><DIV>Next, we open our DevForce EF Object Mapper tool and click save, and we get the following error:</DIV><DIV>&nbsp;</DIV><DIV>"Failed to save model file:&nbsp; 'C:\... &#091;foo&#093;.ibedmx'</DIV><DIV>TypeName: 'Boolean' does not contain namespace: '&#091;blah&#093;'</DIV><DIV>&nbsp;</DIV><DIV>It's as if the DevForce object mapper tool does not know what to do with a return type of Collection(Boolean). We get the same error when we change the return type to Int32 (or any built in System type).</DIV><DIV>&nbsp;</DIV><DIV>When we change the return type to be one of our custom Entity types, the DevForce EF Object Mapper tool is happy.</DIV><DIV>&nbsp;</DIV><DIV>Does this mean that DevForce does not support returning built in types (such as boolean and int32) from stored procedures????! Could this be?</DIV><DIV>&nbsp;</DIV><DIV>Adam :)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 14 May 2009 12:08:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;PID=4534#4534</guid>
  </item> 
 </channel>
</rss>