<?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 : Retreive entities with null value in a field</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Retreive entities with null value in a field</description>
  <pubDate>Mon, 13 Apr 2026 05:29:07 -700</pubDate>
  <lastBuildDate>Thu, 13 Sep 2007 09:45:30 -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=427</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>Retreive entities with null value in a field : Use the OQL to solve this one....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=427&amp;PID=1170#1170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 427<br /><strong>Posted:</strong> 13-Sep-2007 at 9:45am<br /><br />Use the OQL to solve this one.&nbsp; Remove the line "oCol.Add(DBNull.Value)" and add another AddClause with an OR operative.&nbsp; Utilize the EntityQueryOp.IsNull parameter.]]>
   </description>
   <pubDate>Thu, 13 Sep 2007 09:45:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=427&amp;PID=1170#1170</guid>
  </item> 
  <item>
   <title>Retreive entities with null value in a field :   How to add a clause that specify...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=427&amp;PID=1167#1167</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=152" rel="nofollow">f3rland</a><br /><strong>Subject:</strong> 427<br /><strong>Posted:</strong> 13-Sep-2007 at 5:49am<br /><br /><DIV></DIV><DIV></DIV><DIV>How to add a clause that specify DBNull?</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV><FONT color=#0000ff size=1>Dim</FONT><FONT size=1> oResult </FONT><FONT color=#0000ff size=1>As</FONT><FONT size=1> EntityList(</FONT><FONT color=#0000ff size=1>Of</FONT><FONT size=1> SomeProject.Something)</FONT></DIV><DIV><FONT color=#0000ff size=1>Dim</FONT><FONT size=1> oQuery </FONT><FONT color=#0000ff size=1>As</FONT><FONT size=1> </FONT><FONT color=#0000ff size=1>New</FONT><FONT size=1> EntityQuery(</FONT><FONT color=#0000ff size=1>GetType</FONT><FONT size=1>(SomeProject.Something))</FONT></DIV><DIV><FONT size=1><FONT color=#0000ff size=1>Dim</FONT><FONT size=1> oCol </FONT><FONT color=#0000ff size=1>As</FONT><FONT size=1> </FONT><FONT color=#0000ff size=1>New</FONT><FONT size=1> Collection</FONT></FONT></DIV><DIV><FONT size=1><FONT color=#008000 size=1>'oCol.Add(DBNull.Value)&nbsp;&nbsp; &lt;----- here is the problem!</FONT></FONT></DIV><DIV><FONT size=1><FONT size=1>oCol.Add(</FONT><FONT color=#a31515 size=1>"**"</FONT><FONT size=1>)</FONT></FONT></DIV><DIV><FONT size=1><FONT size=1>oCol.Add(</FONT><FONT color=#a31515 size=1>""</FONT><FONT size=1>)</FONT></FONT></DIV><DIV><FONT size=1>oQuery.AddClause(SomeProject.Something.StringFieldThatCanBeNullEntityColumn, EQO.In, oCol) <FONT color=#008000>' &lt;----&nbsp; Throw exception here</FONT></DIV></FONT><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><span style="font-size:10px"><br /><br />Edited by f3rland - 13-Sep-2007 at 6:57am</span>]]>
   </description>
   <pubDate>Thu, 13 Sep 2007 05:49:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=427&amp;PID=1167#1167</guid>
  </item> 
 </channel>
</rss>