<?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 : Stored Procedure Mapping</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Stored Procedure Mapping</description>
  <pubDate>Fri, 17 Apr 2026 05:57:04 -700</pubDate>
  <lastBuildDate>Wed, 08 Jul 2009 07:52: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=1356</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>Stored Procedure Mapping : Thanks for posting your workaround!  (The...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4919#4919</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> 1356<br /><strong>Posted:</strong> 08-Jul-2009 at 7:52am<br /><br />Thanks for posting your workaround!<DIV>&nbsp;</DIV><DIV>(The reason the AdoHelper was configured for SQL Server is because that's the fallback when the data provider is unknown.&nbsp; The recognized data providers are System.Data.OleDb, System.Data.OracleClient and System.Data.SqlClient.&nbsp; Another workaround might have been to extend the existing OracleProviderHelper class, but since, as you say, this is largely undocumented, that might have proven more difficult than your very nice solution.)</DIV>]]>
   </description>
   <pubDate>Wed, 08 Jul 2009 07:52:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4919#4919</guid>
  </item> 
  <item>
   <title>Stored Procedure Mapping : I figured out a way to execute...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4918#4918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=308" rel="nofollow">skingaby</a><br /><strong>Subject:</strong> 1356<br /><strong>Posted:</strong> 08-Jul-2009 at 7:30am<br /><br />I figured out a way to execute the stored proc using a custom ADO Helper class and the RdbKey from the EdmKey in the DevForce config.  I posted it to the forum here:<br /><a href="http://www.ideablade.com/forum/forum_posts.asp?TID=1363" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=1363</a>]]>
   </description>
   <pubDate>Wed, 08 Jul 2009 07:30:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4918#4918</guid>
  </item> 
  <item>
   <title>Stored Procedure Mapping : The Entity Framework, and by extension...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4894#4894</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> 1356<br /><strong>Posted:</strong> 03-Jul-2009 at 10:15am<br /><br />The Entity Framework, and by extension DevForce, supports only a collection of entities as a return type from a stored procedure.&nbsp; You can probably get this to work if you create a dummy Entity wrapping the return result.&nbsp; Here's a little more info - <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=1259&amp;KW=stored+procedure" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=1259</A>&nbsp;and <a href="http://msdn.microsoft.com/en-us/library/bb399203.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb399203.aspx</A><DIV></DIV>]]>
   </description>
   <pubDate>Fri, 03 Jul 2009 10:15:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4894#4894</guid>
  </item> 
  <item>
   <title>Stored Procedure Mapping : I have an Oracle Stored Proc:  CREATE...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4888#4888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=308" rel="nofollow">skingaby</a><br /><strong>Subject:</strong> 1356<br /><strong>Posted:</strong> 02-Jul-2009 at 8:36am<br /><br />I have an Oracle Stored Proc:<br /><br />CREATE OR REPLACE PROCEDURE GetNextSequenceValue(<br />&nbsp;&nbsp;&nbsp;&nbsp;sequence_name IN VARCHAR,<br />&nbsp;&nbsp;&nbsp;&nbsp;next_val OUT NUMBER)<br />IS<br />&nbsp;&nbsp;&nbsp;&nbsp;select_stmt varchar(200);<br />BEGIN<br />&nbsp;&nbsp;&nbsp;&nbsp;EXECUTE IMMEDIATE concat('select ' , concat(sequence_name , '.NEXTVAL from dual'))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTO next_val;<br />END;<br /><br />I have mapped it in the EDMX:<br /><br />&lt;Function Name="GETNEXTSEQUENCEVALUE" IsComposable="false" BuiltIn="false" Aggregate="false" NiladicFunction="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="GCSD9" StoreFunctionName="GETNEXTSEQUENCEVALUE"&gt;<br />  &lt;Parameter Name="SEQUENCE_NAME" Type="VARCHAR2" Mode="In" /&gt;<br />  &lt;Parameter Name="NEXT_VAL" Type="int64" Mode="Out" /&gt;<br />&lt;/Function&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /><br />&lt;FunctionImport Name="GetNextSequenceValue"&gt;<br />  &lt;Parameter Name="SEQUENCE_NAME" Mode="In" Type="String" /&gt;<br />  &lt;Parameter Name="NEXT_VAL" Mode="Out" Type="Int64" /&gt;<br />&lt;/FunctionImport&gt;<br /><br />&lt;FunctionImportMapping FunctionImportName="GetNextSequenceValue" FunctionName="GcsModel.Store.GETNEXTSEQUENCEVALUE" /&gt;<br /><br />When I save this model, DevForce notices the EDMX has changed and tries to regenerate the servermodel, but it fails and leaves this message in the designer.cs file:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;#region GetNextSequenceValue StoredProcQuery<br />&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;summary&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;/// Constructs and executes the &lt;see cref="T:IbEm.StoredProcQuery"/&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;/// associated with the given stored procedure.<br />&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;/summary&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;public <br /><br />*** Error occurred in template processing ***Eval error: Unable to evaluate either XPath: '@ibcg:ClientReturnType' or Attribute: ''<br /><br />Is this a bug in RC3 or is this a problem with my implementation?  How should I implement this?  Can I?<br />Thanks,<br />Simon]]>
   </description>
   <pubDate>Thu, 02 Jul 2009 08:36:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1356&amp;PID=4888#4888</guid>
  </item> 
 </channel>
</rss>