<?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 : Receive PropertyChanged events from NavitgationProperty entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Receive PropertyChanged events from NavitgationProperty entities</description>
  <pubDate>Wed, 29 Jul 2026 01:35:21 -700</pubDate>
  <lastBuildDate>Tue, 21 Sep 2010 04:24:22 -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=2110</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>Receive PropertyChanged events from NavitgationProperty entities : Thank you for the suggestions...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8582#8582</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=587" rel="nofollow">cjohnson84</a><br /><strong>Subject:</strong> 2110<br /><strong>Posted:</strong> 21-Sep-2010 at 4:24am<br /><br />Thank you for the suggestions Denis.&nbsp; What I am ultimately trying to do is make the "Employee" user tab shown above go visually "dirty" (change the tab header)&nbsp;when any of the employee information on the tab is modified.&nbsp; You're correct that EmployeePhones is not actually on the Employee object.&nbsp; I want to somehow make it part of the employee object so that changes to the EmployeePhones collection marks the "overall" employee object as "changed".&nbsp; We were going to expose EmployeePhones on the Employee object ourselves but that is redundant.&nbsp; Looking at the EntityManager.HasChanges isn't an option at this point because our application is using one EntityManager.&nbsp; Because a user could have several tabs open at once the EntityManager could have changes for any reason whatsoever.&nbsp; We are discussing modifying the architecture of our application to use multiple EntityManagers (one for each tab that is opened by the user) and one global entitymanager.&nbsp; That seems like the most reasonable solution.]]>
   </description>
   <pubDate>Tue, 21 Sep 2010 04:24:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8582#8582</guid>
  </item> 
  <item>
   <title>Receive PropertyChanged events from NavitgationProperty entities : Perhaps you could elaborate further...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8480#8480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2110<br /><strong>Posted:</strong> 13-Sep-2010 at 2:43pm<br /><br /><div>Perhaps you could elaborate further the reason why you want to do what you want to do? When you're modifying the EmployeePhones, you're not really modifying the Employee. That is why nothing happens when the DataGrid is being modified. Here are some suggestions:</div><div><br></div>1. The EntityManager is marked as dirty (.HasChanges() ) when any entity that it manages is changed.&nbsp;<div><br></div><div>2. If you want to trigger something to happen on the Employee, for example, setting another property on the Employee instance, then you can use EntityServerSaveInterceptor to check if EmployeePhones are changed and then adjust the Employee property.</div><div><br></div><div>3. If you want to update an Employee property then you're really referring to a UI event. You can do this with the appropriate UI On......event.</div><div><br></div><div>I should be able to answer your question better if you could tell me what you're really looking for.</div>]]>
   </description>
   <pubDate>Mon, 13 Sep 2010 14:43:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8480#8480</guid>
  </item> 
  <item>
   <title>Receive PropertyChanged events from NavitgationProperty entities : I was able to get this working...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8412#8412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=587" rel="nofollow">cjohnson84</a><br /><strong>Subject:</strong> 2110<br /><strong>Posted:</strong> 09-Sep-2010 at 10:23am<br /><br />I was able to get this working using AfterSet attributes in the relevant model objects and forcing the property change event on the "parent" object.&nbsp; Is there a more elegant way to do what I'm trying to do?]]>
   </description>
   <pubDate>Thu, 09 Sep 2010 10:23:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8412#8412</guid>
  </item> 
  <item>
   <title>Receive PropertyChanged events from NavitgationProperty entities : I have the following data model:  I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8287#8287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=587" rel="nofollow">cjohnson84</a><br /><strong>Subject:</strong> 2110<br /><strong>Posted:</strong> 31-Aug-2010 at 6:40am<br /><br />I have the following data model:<DIV><img src="http://www.ideablade.com/forum/uploads/587/Model.jpg" height="430" width="623" border="0" /></DIV><DIV>I am binding&nbsp;an Employee entity to a control in my UI in which I display information from the Employee entity as well as the related Employee.EmployeePhones entity as such:</DIV><DIV>&nbsp;</DIV><DIV><img src="http://www.ideablade.com/forum/uploads/587/Screenshot.jpg" height="522" width="807" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>How do I receive PropertyChanged events from the Employee.EmployeePhones entities if the user changes for example the "Area Code" field of the first Employee.EmployeePhone record in the datagrid.&nbsp; Ultimately I want my "UserTab" to become "dirty" if changes are made.&nbsp; The "UserTab" goes "dirty" if I change a property such as "First Name".&nbsp; Currently though if I make any changes in the datagrid nothing happens.</DIV><DIV>&nbsp;</DIV><DIV>Hopefully this makes sense!</DIV>]]>
   </description>
   <pubDate>Tue, 31 Aug 2010 06:40:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2110&amp;PID=8287#8287</guid>
  </item> 
 </channel>
</rss>