<?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 : Where clause in entity</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Where clause in entity</description>
  <pubDate>Sat, 11 Apr 2026 22:18:36 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 17:09:12 -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=233</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>Where clause in entity : You are correct about the behavior...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=233&amp;PID=516#516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 233<br /><strong>Posted:</strong> 12-Jul-2007 at 5:09pm<br /><br /><P =Ms&#111;normal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">You are correct about the behavior of the "Where" clause.&nbsp;</P><DIV></SPAN></FONT><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">The "Where" clause was intended for distinguishing among records with a FIXED discriminator column. It <strong><B><FONT face=Arial><SPAN style="FONT-FAMILY: Arial">will not work</SPAN></FONT></B></strong> for any column whose value can change ... nor was it supposed to. </SPAN></FONT><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></DIV><P =Ms&#111;normal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">The "Where" clause&nbsp; was designed to separate State codes from Shipping codes when both such codes resided in the same table. A State code never becomes a Shipping code (nor vice versa).</SPAN></FONT><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">However, any object can be active or inactive and switch between the two.</SPAN></FONT><o:p></o:p></P><P =Ms&#111;normal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Perhaps our documentation is unclear on that point - I'm forwarding this to our docs guy.</SPAN></FONT><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">You can teach your managed list to remove an inactive object. That is standard ManagedList coding; please check with support if you need to know more.</SPAN></FONT><o:p></o:p></P><P =Ms&#111;normal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">There are other more challenging issues associated with "logical delete" operations such as are likely to be associated with your "inactive" flag. I don't want to anticipate those now :-) but I have some guidelines when you are ready.</SPAN></FONT><o:p></o:p></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 17:09:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=233&amp;PID=516#516</guid>
  </item> 
  <item>
   <title>Where clause in entity : I have an issue/clarification...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=233&amp;PID=515#515</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 233<br /><strong>Posted:</strong> 12-Jul-2007 at 5:07pm<br /><br /><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have an issue/clarification with regards to where clause definition in the entity.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><UL style="MARGIN-TOP: 0in" =disc><LI =Ms&#111;normal style="COLOR: navy; mso-list: l0 level1 lfo1"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Say I have two entities Order (parent) and OrderDetail (child). OrderDetail has a where clause “status = ‘Active’”.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l0 level1 lfo1"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When I do Order.OrderDetails, I get a managed list with a predicate applied. <o:p></o:p></SPAN></FONT><LI =Ms&#111;normal style="COLOR: navy; mso-list: l0 level1 lfo1"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Now If set the “status” property for one of the OrderDetail entity from the managed list to “InActive”, I expect the entity to be removed from the managed list as it doesn’t satisfy the entity where clause. But it doesn’t seem to be.<o:p></o:p></SPAN></FONT> </LI></UL>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 17:07:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=233&amp;PID=515#515</guid>
  </item> 
 </channel>
</rss>