<?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 : ListManager delegate not detecting deletes</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : ListManager delegate not detecting deletes</description>
  <pubDate>Tue, 14 Apr 2026 06:46:11 -700</pubDate>
  <lastBuildDate>Mon, 16 Feb 2009 15:26:42 -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=1091</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>ListManager delegate not detecting deletes :   Originally posted by mriversI&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1091&amp;PID=3920#3920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1091<br /><strong>Posted:</strong> 16-Feb-2009 at 3:26pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by mrivers</strong></em><br /><br />I've created a ListManager who's delegate always returns true when an entity being&nbsp;managed by the ListManager changes or is added. I would also like the delegate to catch any deletions of the managed entity type. Do I have to do something different to be able to detect the deletions?<div>&nbsp;</div><div>Here is my code snippet:</div><div>........................................................</div><div><font color="#2b91af" size="2"><font color="#2b91af" size="2"><font size="2">mEntityList = pManager.PersistenceManager.GetEntities&lt;</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2">&gt;(pQuery);</font></font></font></div><div><font color="#2b91af" size="2"><font color="#2b91af" size="2"><font size="2"></font>Predicate</font></font><font size="2">&lt;</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2">&gt; predicate =</font></div><div><font color="#0000ff" size="2"><font color="#0000ff" size="2">delegate</font></font><font size="2">(</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2"> pType)</font></div><div><font size="2">{</font></div><div><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">return</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">true</font></font><font size="2">;</font></div><div><font size="2">};</font></div><div><font size="2"></font>&nbsp;</div><div><font size="2">mEntityList.ListManager = </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">new</font></font><font size="2"> </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">EntityListManager</font></font><font size="2">&lt;</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2">&gt;(pManager.PersistenceManager,</font></div><div><font size="2">predicate,</font></div><div><font color="#0000ff" size="2"><font color="#0000ff" size="2">new</font></font><font size="2"> </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">EntityColumn</font></font><font size="2">&#091;&#093; { </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2">.PropertyidEntityColumn, </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2">.PresentvalueEntityColumn, </font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Property_Entity</font></font><font size="2">.LiquidEntityColumn });</font></div><div><font size="2">.............................................</font></div></td></tr></table><br><br><br><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by mrivers</strong></em><br /><br /><br>Do I have to do something different to be able to detect the deletions?<br></td></tr></table><br><br>1. DevForce removes deleted entities from EntityLists as a matter of course: no EntityListManager required.&nbsp; What contrary behavior are you seeing?<br><br>2. EntityListManagers can be expensive, performance-wise, if overused and/or defined inefficiently. The EntityListManager you've defined looks somewhat inefficient in that, since you've said *any* entity of the specified type belongs in the list (no exclusionary criteria in the predicate), I don't see what the point is of monitoring the Presentvalue and Liquid entity columns. The test on the PropertyidEntityColumn will already guarantee that any new instance of Property_Entity will get included in your list; and there's no change to either a Presentvalue or Liquid property that would cause an entity already in the list to be removed from it.<br><br>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 15:26:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1091&amp;PID=3920#3920</guid>
  </item> 
  <item>
   <title>ListManager delegate not detecting deletes : I&amp;#039;ve created a ListManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1091&amp;PID=3911#3911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=137" rel="nofollow">mrivers</a><br /><strong>Subject:</strong> 1091<br /><strong>Posted:</strong> 11-Feb-2009 at 12:54pm<br /><br />I've created a ListManager who's delegate always returns true when an entity being&nbsp;managed by the ListManager changes or is added. I would also like the delegate to catch any deletions of the managed entity type. Do I have to do something different to be able to detect the deletions?<DIV>&nbsp;</DIV><DIV>Here is my code snippet:</DIV><DIV>........................................................</DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2><FONT size=2>mEntityList = pManager.PersistenceManager.GetEntities&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2>&gt;(pQuery);</DIV><DIV></FONT>Predicate</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2>&gt; predicate =</FONT></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>delegate</FONT></FONT><FONT size=2>(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2> pType)</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><DIV><FONT size=2></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>;</FONT></DIV><DIV><FONT size=2>};</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>mEntityList.ListManager = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntityListManager</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2>&gt;(pManager.PersistenceManager,</FONT></DIV><DIV><FONT size=2>predicate,</FONT></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntityColumn</FONT></FONT><FONT size=2>&#091;&#093; { </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2>.PropertyidEntityColumn, </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2>.PresentvalueEntityColumn, </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Property_Entity</FONT></FONT><FONT size=2>.LiquidEntityColumn });</FONT></DIV><DIV><FONT size=2>.............................................</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 11 Feb 2009 12:54:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1091&amp;PID=3911#3911</guid>
  </item> 
 </channel>
</rss>