<?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 : how to save a relation?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : how to save a relation?</description>
  <pubDate>Mon, 20 Apr 2026 23:01:20 -700</pubDate>
  <lastBuildDate>Mon, 09 Jul 2012 16:12:24 -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=3526</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>how to save a relation? :   Hi Paolo,Have you taken a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3526&amp;PID=13987#13987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3526<br /><strong>Posted:</strong> 09-Jul-2012 at 4:12pm<br /><br />Hi Paolo,<div>&nbsp;</div><div>Have you taken a look at our sample using Telerik controls?</div><div>You can find it in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-wpf-telerik" target="_blank">DevForce Resource Center</a>.</div><div>&nbsp;</div><div>That might help you find what you are missing.</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Mon, 09 Jul 2012 16:12:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3526&amp;PID=13987#13987</guid>
  </item> 
  <item>
   <title>how to save a relation? : Hello,I&amp;#039;ve the following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3526&amp;PID=13978#13978</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3526<br /><strong>Posted:</strong> 09-Jul-2012 at 12:35am<br /><br />Hello,<br>I've the following tables<br><br>Dashboard<br><br>CREATE TABLE &#091;dbo&#093;.&#091;DBOARD&#093;(<br>&nbsp;&nbsp;&nbsp; &#091;ID&#093; &#091;int&#093; IDENTITY(1,1) NOT NULL,<br>&nbsp;&nbsp;&nbsp; &#091;DESCRIZIONE&#093; &#091;varchar&#093;(50) NOT NULL,<br>&nbsp;CONSTRAINT &#091;PK_DBS&#093; PRIMARY KEY CLUSTERED <br>(<br>&nbsp;&nbsp;&nbsp; &#091;ID&#093; ASC<br>)WITH (PAD_INDEX&nbsp; = OFF, STATISTICS_NORECOMPUTE&nbsp; = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS&nbsp; = ON, ALLOW_PAGE_LOCKS&nbsp; = ON, FILLFACTOR = 90) ON &#091;PRIMARY&#093;<br>) ON &#091;PRIMARY&#093;<br><br>Layout<br><br>CREATE TABLE &#091;dbo&#093;.&#091;LAYOUT&#093;(<br>&nbsp;&nbsp;&nbsp; &#091;ID&#093; &#091;int&#093; IDENTITY(1,1) NOT NULL,<br>&nbsp;&nbsp;&nbsp; &#091;DESCRIZIONE&#093; &#091;varchar&#093;(50) NULL,<br>&nbsp;CONSTRAINT &#091;PK_LAYOUT&#093; PRIMARY KEY CLUSTERED <br>(<br>&nbsp;&nbsp;&nbsp; &#091;ID&#093; ASC<br>)WITH (PAD_INDEX&nbsp; = OFF, STATISTICS_NORECOMPUTE&nbsp; = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS&nbsp; = ON, ALLOW_PAGE_LOCKS&nbsp; = ON, FILLFACTOR = 90) ON &#091;PRIMARY&#093;<br>) ON &#091;PRIMARY&#093;<br><br><br>Dashboard_Layout<br><br>CREATE TABLE &#091;dbo&#093;.&#091;LAYOUT_DBOARD&#093;(<br>&nbsp;&nbsp;&nbsp; &#091;ID_DBOARD&#093; &#091;int&#093; NOT NULL,<br>&nbsp;&nbsp;&nbsp; &#091;ID_LAYOUT&#093; &#091;int&#093; NOT NULL,<br>&nbsp;CONSTRAINT &#091;PK_LAYOUTDBOARD&#093; PRIMARY KEY CLUSTERED <br>(<br>&nbsp;&nbsp;&nbsp; &#091;ID_DBOARD&#093; ASC,<br>&nbsp;&nbsp;&nbsp; &#091;ID_LAYOUT&#093; ASC<br>)WITH (PAD_INDEX&nbsp; = OFF, STATISTICS_NORECOMPUTE&nbsp; = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS&nbsp; = ON, ALLOW_PAGE_LOCKS&nbsp; = ON, FILLFACTOR = 90) ON &#091;PRIMARY&#093;<br>) ON &#091;PRIMARY&#093;<br><br>GO<br><br>ALTER TABLE &#091;dbo&#093;.&#091;LAYOUT_DBOARD&#093;&nbsp; WITH CHECK ADD&nbsp; CONSTRAINT &#091;FK_DBOARD_LAYOUT&#093; FOREIGN KEY(&#091;ID_LAYOUT&#093;)<br>REFERENCES &#091;dbo&#093;.&#091;LAYOUT&#093; (&#091;ID&#093;)<br>GO<br><br>ALTER TABLE &#091;dbo&#093;.&#091;LAYOUT_DBOARD&#093; CHECK CONSTRAINT &#091;FK_DBOARD_LAYOUT&#093;<br>GO<br><br>ALTER TABLE &#091;dbo&#093;.&#091;LAYOUT_DBOARD&#093;&nbsp; WITH CHECK ADD&nbsp; CONSTRAINT &#091;FK_LAYOUT_DBOARD&#093; FOREIGN KEY(&#091;ID_DBOARD&#093;)<br>REFERENCES &#091;dbo&#093;.&#091;DBOARD&#093; (&#091;ID&#093;)<br>GO<br><br>ALTER TABLE &#091;dbo&#093;.&#091;LAYOUT_DBOARD&#093; CHECK CONSTRAINT &#091;FK_LAYOUT_DBOARD&#093;<br>GO<br><br>I've a silverlight application that permits me to choose which layout is applied to a dashboard...<br><br>I my XAML application for getting the selected Item I do<br><br>&nbsp;&nbsp; &lt;telerik:RadComboBox Grid.Row="1" Grid.Column="1" SelectedItem="{Binding LAYOUT&#091;0&#093;}" DisplayMemberPath="DESCRIZIONE" <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ItemsSource="{Binding DataContext.ListaLayout,Mode=OneWay,RelativeSource={RelativeSource AncestorType=UserControl}}"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Style="{StaticResource RadComboBoxMetroStyle}" Width="300" HorizontalAlignment="Left" &gt;&lt;/telerik:RadComboBox&gt;<br><br>This loads in the dropdown the current selected item, when I choose another one and try to save I have still the old selected one...<br>since for saving I'm doing<br><br>&nbsp; public OperationResult CreateDashBoard(DBOARD dashboard, Action&lt;IEnumerable&gt; onSuccess = null, Action&lt;Exception&gt; onFail = null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; entityManagerProvider.Manager.AddEntity(dashboard);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return AlwaysCompletedOperationResult.Instance;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>the dashboard.LAYOUT&#091;0&#093; is still the old value I've set... how do I manage MxN relations when changing the selected Item?<br><br>Thanks<br><br>]]>
   </description>
   <pubDate>Mon, 09 Jul 2012 00:35:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3526&amp;PID=13978#13978</guid>
  </item> 
 </channel>
</rss>