<?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 : Silverlight: Using the Any() method</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Silverlight: Using the Any() method</description>
  <pubDate>Mon, 13 Apr 2026 09:56:32 -700</pubDate>
  <lastBuildDate>Tue, 05 Apr 2011 05:30:17 -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=2579</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>Silverlight: Using the Any() method :   Got it - I was simply missing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10386#10386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2579<br /><strong>Posted:</strong> 05-Apr-2011 at 5:30am<br /><br />Got it - <div sab="1282">&nbsp;</div><div sab="1283">I was simply missing "using System.Linq;" as a declaration....</div><div sab="1284">&nbsp;</div><div sab="1285">Gotta love overloaded functions in different namespaces.. </div>]]>
   </description>
   <pubDate>Tue, 05 Apr 2011 05:30:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10386#10386</guid>
  </item> 
  <item>
   <title>Silverlight: Using the Any() method : You will only need System.Linq...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10314#10314</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2579<br /><strong>Posted:</strong> 29-Mar-2011 at 3:08pm<br /><br /><DIV>You will only need <EM>System.Linq </EM>and <EM>IdeaBlade.EntityModel</EM>.</DIV><DIV>&nbsp;</DIV><DIV>I have attached&nbsp;is a simple Silverlight sample against NorthwindIB running a similar query as provided before.</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/uploads/892/Any.zip" target="_blank">uploads/892/Any.zip</A></DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Tue, 29 Mar 2011 15:08:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10314#10314</guid>
  </item> 
  <item>
   <title>Silverlight: Using the Any() method :   I just tried the code you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10310#10310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2579<br /><strong>Posted:</strong> 29-Mar-2011 at 12:47pm<br /><br />I just tried the code you mentioned, however, the code does not compile. It says there was no method of .Any that accepts one argument. <div>&nbsp;</div><div>Is this an Extension method in another DLL? </div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 29 Mar 2011 12:47:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10310#10310</guid>
  </item> 
  <item>
   <title>Silverlight: Using the Any() method : Hi Jipock,  Unfortunately, theEntity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10259#10259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2579<br /><strong>Posted:</strong> 23-Mar-2011 at 10:32am<br /><br /><P style="MARGIN: 0in 4.5pt 0.75pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Hi Jipock,<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 4.5pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 4.5pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Unfortunately, the&nbsp;Entity Framework does not support&nbsp;</SPAN><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>Any(</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: #2b91af; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>Func</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&lt;T, </SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>int</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>, </SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>bool</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&gt;)</SPAN></I><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN> so you can only execute it against the cache&nbsp;(in either in SL&nbsp;and/or WPF).&nbsp;&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 4.5pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>However, your query doesn't really need</SPAN><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN> Any(</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: #2b91af; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>Func</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&lt;T, </SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>int</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>, </SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>bool</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&gt;)</SPAN></I><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>, and you could simply use&nbsp;</SPAN><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>Any(</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: #2b91af; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>Func</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&lt;T, </SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>bool</SPAN></I><I><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&gt;)</SPAN></I><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;as it is supported by EF and you can run against the query. <o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 4.5pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>So, you query slightly modified:<o:p></o:p></SPAN></P><P style="MARGIN: 0.75pt 4.5pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>var query = objEntityManager.Classes</SPAN><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><o:p></o:p></SPAN></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include("Sections")</SPAN><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><o:p></o:p></SPAN></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .OrderBy(op =&gt; op.ClassName)</SPAN><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><o:p></o:p></SPAN></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where(op =&gt; (</SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>this</SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>.IsFilterByBeginDate != </SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: blue; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>true</SPAN><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN> || op.Sections.Any(</SPAN><B><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>cs</SPAN></B><SPAN style="FONT-FAMILY: C&#111;nsolas; COLOR: black; FONT-SIZE: 9.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN> =&gt; cs.BeginClassDateTime.Date == DateTime.Now.Date)));</SPAN><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><o:p></o:p></SPAN></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><B><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-bidi-font-size: 11.0pt" lang=EN>&nbsp;</SPAN></B><B><SPAN style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><o:p></o:p></SPAN></B></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>would execute properly.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 4.5pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>We will add a note in our documentation explaining this.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 3pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 3pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Regards,<o:p></o:p></SPAN></P><P style="MARGIN: 0in 3pt 0pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;&nbsp;&nbsp; Silvio.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>]]>
   </description>
   <pubDate>Wed, 23 Mar 2011 10:32:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10259#10259</guid>
  </item> 
  <item>
   <title>Silverlight: Using the Any() method :   Quick Note - the &amp;#034; ||...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10248#10248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2579<br /><strong>Posted:</strong> 22-Mar-2011 at 9:44am<br /><br />Quick Note - the " || false " in the where clause is in there by accident. (It was left over scaffolding from debugging). <div sab="965">&nbsp;</div><div sab="966">It should read: </div><div sab="967">&nbsp;</div><div sab="967"><font size="2" face="C&#111;nsolas">.Where(op =&gt; (<span style="color: blue;" sab="229">this</span>.IsFilterByBeginDate != <span style="color: blue;" sab="230">true</span> || op.Sections.Any((cs,i) =&gt; (cs.BeginClassDateTime.Date == <span sab="232">DateTime</span>.Now.Date))));</font></div><div sab="967"><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div sab="967"><font size="2" face="C&#111;nsolas">Sorry about confusion.</font></div>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 09:44:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10248#10248</guid>
  </item> 
  <item>
   <title>Silverlight: Using the Any() method :   Good Afternoon, I&amp;#039;m wondering...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10246#10246</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2579<br /><strong>Posted:</strong> 22-Mar-2011 at 9:33am<br /><br />Good Afternoon, <div>&nbsp;</div><div>I'm wondering whether or not IdeaBlade supports (with the latest version) the Any() method in Silverlight, and if so, what's wrong with this statement.&nbsp;What I'm trying to do is to return a list of objects (Classes) that that&nbsp;a Section that begins on a certain day.</div><div>Some of the documentation with DevForce says that .Any wasn't supported because it returns a scalar value, but this really is part of a sub-query. </div><div>&nbsp;</div><div>Query: </div><div>&nbsp;</div><div><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; text-autospace: ;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">var query = objEntityManager.Classes<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; text-autospace: ;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Include(<span style="color: rgb163, 21, 21;">"Sections"</span>)<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; text-autospace: ;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.OrderBy(op =&gt; op.ClassName)<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; text-autospace: ;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Where(op =&gt; (<span style="color: blue;">this</span>.IsFilterByBeginDate != <span style="color: blue;">true</span> || <span style="color: blue;">false</span>||op.Sections.Any((cs,i) =&gt; (cs.BeginClassDateTime.Date == <span style="color: rgb43, 145, 175;">DateTime</span>.Now.Date))));<o:p></o:p></span></p><span style="font-family: C&#111;nsolas; font-size: 9.5pt;"><div><o:p></o:p>&nbsp;</div><div><o:p>The Error returned is: </o:p></div><div><o:p>LINQ to Entities does not recognize the method "Boolean Any&#091;Sections&#093;..... method cannot be translated into a store expression."</o:p></div><div><o:p></o:p>&nbsp;</div><div><o:p></o:p>&nbsp;</div><div><o:p>Any thoughts?</o:p></div><p style="margin: 0in 0in 0pt; text-autospace: ;" ="Ms&#111;normal"><o:p></o:p></span>&nbsp;</p><font size="3" face="Times New Roman"></font></div>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 09:33:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2579&amp;PID=10246#10246</guid>
  </item> 
 </channel>
</rss>