<?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 : StoredProcQuery</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : StoredProcQuery</description>
  <pubDate>Sat, 11 Apr 2026 15:19:35 -700</pubDate>
  <lastBuildDate>Mon, 26 Jul 2010 05:40:10 -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=1999</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>StoredProcQuery : We have an app with over 200+...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1999&amp;PID=7801#7801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=869" rel="nofollow">cbondeson</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 26-Jul-2010 at 5:40am<br /><br />We have an app with over&nbsp; 200+ Stored Procs and many returning "complex types" . Will this "bug" be fixed?<br>]]>
   </description>
   <pubDate>Mon, 26 Jul 2010 05:40:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1999&amp;PID=7801#7801</guid>
  </item> 
  <item>
   <title>StoredProcQuery : This would be a bug. We &#8220;hide&#8221;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1999&amp;PID=7797#7797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 24-Jul-2010 at 6:54am<br /><br /><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">This would be a bug.&nbsp; We “hide” properties on the base Entity/EntityWrapper so that automatic field generation produces only the desired application properties and no DF schmutz, but we don’t do this for ComplexTypes.&nbsp; <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Workaround right now would be to return an Entity type instead of a ComplexType from the function import, or to turn off automatic field generation for the grid. <o:p></o:p></SPAN></P>]]>
   </description>
   <pubDate>Sat, 24 Jul 2010 06:54:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1999&amp;PID=7797#7797</guid>
  </item> 
  <item>
   <title>StoredProcQuery :          I am trying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1999&amp;PID=7782#7782</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=869" rel="nofollow">cbondeson</a><br /><strong>Subject:</strong> 1999<br /><strong>Posted:</strong> 23-Jul-2010 at 11:20am<br /><br />I am trying to bind a data grid to the result of a stored procedure call. I added the stored procedure to the entity data model. I built my own custom complex entity type. <br><br>I edit the CSDL content in XML. I have a tool which generates the XML by iterating through a dataset returned from a call to the proc. It is much faster than doing it by hand.<br><br>&lt;ComplexType Name="PatientGetRS_Result"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;Property Type="Int32" Name="ObjectParentID" Nullable="true" /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;Property Type="String" Name="LastName" Nullable="true" MaxLength="50" /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;Property Type="String" Name="FirstName" Nullable="true" MaxLength="50" /&gt;<br>etc<br>etc<br>&nbsp;&lt;/ComplexType&gt;<br><br><br><br>I imported the procedure , inspected the class and associated properties, and all was right with the world. I created a simple xaml with only the data grid and bound it to the ObservableCollection&lt;PatientGetRS_Result&gt; using the complex type. <br><br>When I run the app the data grid columns are auto filled but have extra columns not in the &lt;PatientGetRS_Result&gt; class. These include ParentProperty, ParentEntity, VerifierEngine, EntityManager, EntityMetadata, 2 instances of Item, and SerializationContext. <br><br>When Silverlight attempts to bind it fails since "Type" occurs twice. I get a "Ambigious Match Found" exception due to the 2 instances of "Item". <br><br>Why is DevForce adding these other fields??<br><br>I realize that I can set AutoGenerateColumns="False" and then add the columns manually but that really takes away from the elegance of this entity framework.<br><br>This is a fix but once again hacky!!!<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var Patient = new PatientGetRS_Result();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PropertyInfo&#091;&#093; properties = Patient.GetType().GetProperties();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Array.ForEach(properties, oPropertyInfo =&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (oPropertyInfo.Name == "Item")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataGrid1.Columns.Add(new DataGridTextColumn { Header = oPropertyInfo.Name, Binding = new System.Windows.Data.Binding(oPropertyInfo.Name), IsReadOnly = true });<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br><br>Once this is done the binding works and the grid updates.<br><span style="font-size:10px"><br /><br />Edited by cbondeson - 24-Jul-2010 at 5:34am</span>]]>
   </description>
   <pubDate>Fri, 23 Jul 2010 11:20:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1999&amp;PID=7782#7782</guid>
  </item> 
 </channel>
</rss>