<?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 : Soft Delete example in Dev Guide</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Soft Delete example in Dev Guide</description>
  <pubDate>Sat, 27 Jun 2026 05:26:21 -700</pubDate>
  <lastBuildDate>Sun, 05 Oct 2008 15:52:20 -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=954</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>Soft Delete example in Dev Guide : WRT my above codes, the OnEntityManagerFetched...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3465#3465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 954<br /><strong>Posted:</strong> 05-Oct-2008 at 3:52pm<br /><br /><P>WRT my above codes, the OnEntityManagerFetched seems to be ok but I could not trust my implementation of&nbsp;<strong>OnEntityManagerFetching</strong> works. So in addition to these 2, I implement the&nbsp;partial AfterGets methods individually&nbsp;as well, for example:</P><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// Implements AfterGetRelGroupsChildren to filters out inactive entities<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;param name="args"&gt;The source entities&lt;/param&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; partial void AfterGetRelGroupsChildren(global::IdeaBlade.EntityModel.v4.GetterArgs&lt;global::IdeaBlade.EntityModel.v4.RelatedEntityList&lt;RelGroup&gt;&gt; args)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (args != null &amp;&amp; args.Value != null)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // BaseEntity.IsActive&nbsp;is a generic&nbsp;delegate predicate<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;RelGroup&gt; filteredList = args.Value.Where&lt;RelGroup&gt;(BaseEntity.IsActive&lt;RelGroup&gt;).ToList&lt;RelGroup&gt;();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ListEntityReference&lt;RelGroup&gt; refList = args.Value.ListReference;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IdeaBlade.EntityModel.v4.RelatedEntityList&lt;RelGroup&gt; newRelatedList = new RelatedEntityList&lt;RelGroup&gt;(filteredList, refList);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; args.Value = newRelatedList;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>]]>
   </description>
   <pubDate>Sun, 05 Oct 2008 15:52:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3465#3465</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : Yes,in fact I have implemented...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3462#3462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 954<br /><strong>Posted:</strong> 03-Oct-2008 at 2:46pm<br /><br />Yes,&nbsp;in fact I have implemented something, I'll post a reply on Sunday ;-)]]>
   </description>
   <pubDate>Fri, 03 Oct 2008 14:46:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3462#3462</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : There is an oustanding feature...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3460#3460</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> 954<br /><strong>Posted:</strong> 03-Oct-2008 at 8:44am<br /><br />There is an oustanding feature request to provide a Soft Delete example for the DevForce EF Developer's Guide, but I am not sure when we will be able to get to this.<DIV>&nbsp;</DIV><DIV>If you are trying to implement this yourself right now, do you have any outstanding issues or problems that you would like to share with us?&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 03 Oct 2008 08:44:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3460#3460</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : And is your mPM_Fetching example...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3447#3447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 954<br /><strong>Posted:</strong> 26-Sep-2008 at 4:18pm<br /><br />And is your mPM_Fetching example applicable to DevForce EF? If not, what is the equivalent?<br />]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 16:18:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3447#3447</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : My example is for DevForce Classic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3444#3444</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> 954<br /><strong>Posted:</strong> 26-Sep-2008 at 9:28am<br /><br />My example is for DevForce Classic only.&nbsp; The post has two primary purposes: <DIV>&nbsp;</DIV><DIV>a.&nbsp; Confirm that the documentation (with the exception of the pm_Fetching event) is up to date:</DIV><DIV>&nbsp;</DIV><DIV>b.&nbsp; Helps DevForce Classic developers who are having coding problems with the pm_Fetching event.</DIV>]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 09:28:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3444#3444</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : So the equivalent implementation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3443#3443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 954<br /><strong>Posted:</strong> 26-Sep-2008 at 9:10am<br /><br />So the equivalent implementation for DevForce EF still references IdeaBlade.Persistence.dll, am I right?]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 09:10:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3443#3443</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : There is a problem with the pm_Fetching...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3442#3442</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> 954<br /><strong>Posted:</strong> 26-Sep-2008 at 8:50am<br /><br />There is a problem with the pm_Fetching code in the documentation for DevForce classic:<DIV>&nbsp;</DIV><DIV>Here is the problematic code from one customer's implementation:</DIV><DIV>&nbsp;</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="COLOR: blue">private</SPAN> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: blue">void</SPAN> pm_Fetching(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: #2b91af">EntityFetchingEventArgs</SPAN> e) <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;IdeaBlade.Persistence.<SPAN style="COLOR: #2b91af">EntityQuery</SPAN> q = (e.Query <SPAN style="COLOR: blue">as</SPAN> IdeaBlade.Persistence.<SPAN style="COLOR: #2b91af">EntityQuery</SPAN>);<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">if</SPAN> (q.EntityType <SPAN style="COLOR: blue">is</SPAN> <SPAN style="COLOR: #2b91af">ActiveEntity</SPAN>)<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;q.AddClause(<SPAN style="COLOR: #a31515">"Deleted"</SPAN>, <SPAN style="COLOR: #2b91af">EntityQueryOp</SPAN>.EQ, <SPAN style="COLOR: blue">false</SPAN>); <SPAN style="COLOR: green">// '1' == true<o:p></o:p></SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P><DIV><DIV><DIV><DIV>&nbsp;</DIV><DIV>Here was my suggestion that fixed the customer's code:</DIV><DIV>&nbsp;</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">void</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> mPM_Fetching(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: #2b91af">EntityFetchingEventArgs</SPAN> e) {<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IdeaBlade.Persistence.<SPAN style="COLOR: #2b91af">EntityQuery</SPAN> q = (e.Query <SPAN style="COLOR: blue">as</SPAN> IdeaBlade.Persistence.<SPAN style="COLOR: #2b91af">EntityQuery</SPAN>);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">if</SPAN> (q.EntityType.IsSubclassOf(<SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">ActiveEntity</SPAN>))) {<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q.AddClause(<SPAN style="COLOR: #a31515">"DeleteFlag"</SPAN>, <SPAN style="COLOR: #2b91af">EntityQueryOp</SPAN>.EQ, <SPAN style="COLOR: blue">false</SPAN>); <SPAN style="COLOR: green">// '1' == true;<o:p></o:p></SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; }</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P></FONT></FONT></DIV><SPAN style="FONT-FAMILY: Calibri"><o:p><FONT size=3>&nbsp;</FONT></o:p></SPAN></DIV></DIV></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3>&nbsp;</FONT></o:p></SPAN></P></DIV>]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 08:50:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3442#3442</guid>
  </item> 
  <item>
   <title>Soft Delete example in Dev Guide : Hi,  On page 415 of Developers...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3440#3440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 954<br /><strong>Posted:</strong> 26-Sep-2008 at 8:03am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>On page 415 of Developers Guide, there are some sample codes&nbsp;for an approach for&nbsp;soft delete, but seems&nbsp;like they are a bit dated (for classic DevForce perhaps).</DIV><DIV>Not sure if my event handler OnEntityManagerFetched works, but not sure if my OnEntityManagerFetching below matches what the old example is doing?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static EntityManager m_EntityManager = DomainModelEntityManager.DefaultManager;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // constructor<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public ConcreteEntity()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InitializeEm();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void InitializeEm()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_EntityManager.Fetching += new EventHandler&lt;EntityFetchingEventArgs&gt;(OnEntityManagerFetching);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_EntityManager.Fetched += new EventHandler&lt;EntityFetchedEventArgs&gt;(OnEntityManagerFetched);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static void <strong>OnEntityManagerFetching</strong>(object sender, EntityFetchingEventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IEntityQuery q = e.Query;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (q.QueryableType == typeof(ConcreteEntity))<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; DomainModel.DomainModelEntityManager dm = new DomainModelEntityManager();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EntityQuery&lt;ConcreteEntity&gt; eq = dm.ConcreteEntities.Where(ce =&gt; ce.Status == (int)BaseEntity.EntityStatus.Active);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QueryCache qc = new QueryCache();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qc.Add(eq);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q.AddToQueryCache(qc);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static void OnEntityManagerFetched(object sender, EntityFetchedEventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;Entity&gt; removeList = new List&lt;Entity&gt;();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (Entity ent in e.Result)<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; BaseEntity baseEnt = ent as BaseEntity; // BaseEntity is a base class for ConcreteEntity<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (baseEnt != null)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp; if (baseEnt.GetEntityStatus() != BaseEntity.EntityStatus.Active)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; removeList.Add(ent);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_EntityManager.RemoveEntities&lt;Entity&gt;(removeList, false);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance</DIV><DIV>-Sebastian</DIV>]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 08:03:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=954&amp;PID=3440#3440</guid>
  </item> 
 </channel>
</rss>