<?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 : Help with C# translation</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Help with C# translation</description>
  <pubDate>Fri, 10 Apr 2026 22:55:36 -700</pubDate>
  <lastBuildDate>Wed, 28 Jul 2010 16:42:28 -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=2013</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>Help with C# translation : Problem Solved! I refreshed mymodel...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7887#7887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 2013<br /><strong>Posted:</strong> 28-Jul-2010 at 4:42pm<br /><br />Problem Solved! I refreshed my&nbsp;model from the database and regenerated and the problem went away. Funny thing is that I had made no database changes. I don't know what caused the original propblem but I'm good now. Thanks to all for the help.]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 16:42:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7887#7887</guid>
  </item> 
  <item>
   <title>Help with C# translation : The proper imports are there and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7883#7883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 2013<br /><strong>Posted:</strong> 28-Jul-2010 at 4:15pm<br /><br />The proper imports are there and the Where does show up with all of the overloads of which there are 4. There has to be something about how the parameters are specified at least that's what the compiler is complaining about. I guess I'll just rewrite the queries as LINQ queries and not try to use the Lambda expressions but it would be nice of I could figure this out and use the Lambda's]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 16:15:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7883#7883</guid>
  </item> 
  <item>
   <title>Help with C# translation : Perhaps you are missing an &amp;#034;Imports&amp;#034;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7880#7880</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> 2013<br /><strong>Posted:</strong> 28-Jul-2010 at 3:52pm<br /><br />Perhaps you are missing an "Imports" statement.&nbsp; See:<DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/forum_posts.asp?TID=1743&amp;PID=6615#6615" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=1743&amp;PID=6615#6615</A></DIV>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 15:52:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7880#7880</guid>
  </item> 
  <item>
   <title>Help with C# translation : Thanks For trying to help Greg...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7874#7874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 2013<br /><strong>Posted:</strong> 28-Jul-2010 at 3:24pm<br /><br />Thanks For trying to help Greg but your suggestion did not fix the problem. In fact I get the same error any time I try<DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style=": #e6ffe6; COLOR: green">aUser&nbsp;=&nbsp;pManager.Users.Where(Function(u)&nbsp;u.UserName&nbsp;=&nbsp;pUsername).FirstOrNullEntity()</SPAN><BR></PRE><PRE style="FONT-FAMILY: c&#111;nsolas">The error is "Overloaded resolution failed because no accessable 'Where' can be called with these arguements.</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">I have tried a number of translators and all of them translate the C# code with the same result. So several translators think </PRE><PRE style="FONT-FAMILY: c&#111;nsolas">that the VB code is correct yet it does not work, very frustrating...</PRE></DIV>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 15:24:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7874#7874</guid>
  </item> 
  <item>
   <title>Help with C# translation :  Not sure, but it looks like...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7871#7871</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> 2013<br /><strong>Posted:</strong> 28-Jul-2010 at 2:25pm<br /><br /><DIV><FONT size=2><FONT face="Georgia, Times New Roman, Times, serif"><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt"></SPAN></FONT></FONT></DIV><DIV><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt"></SPAN>Not sure, but it looks like the InstantVB translation may be missing a pair of parentheses:&nbsp;<BR>&nbsp;<BR>THIS: </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; QueryFilters.AddFilter(Of User)(Function(q) (q.Where(Function(u) u.UserName = Principal.Identity.Name)))&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 9.5pt"><O:P></O:P></SPAN>&nbsp;</DIV><DIV>NOT THIS:</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; QueryFilters.AddFilter(Of User)(Function(q) q.Where(Function(u) u.UserName = Principal.Identity.Name))<BR></DIV>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 14:25:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7871#7871</guid>
  </item> 
  <item>
   <title>Help with C# translation : Can someone please show me the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7828#7828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 2013<br /><strong>Posted:</strong> 27-Jul-2010 at 1:11pm<br /><br />Can someone please show me the VB translation for the following C# line of code:<DIV>&nbsp;</DIV><DIV>QueryFilters.AddFilter&lt;<SPAN style="COLOR: #2b91af">User</SPAN>&gt;(q&nbsp;=&gt;&nbsp;q.Where(u&nbsp;=&gt;&nbsp;u.UserName&nbsp;==&nbsp;Principal.Identity.Name));</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas">I tried using InstantVB which does not produce the correct translation:</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><PRE style="FONT-FAMILY: c&#111;nsolas">QueryFilters.AddFilter(<SPAN style="COLOR: blue">Of</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">User</SPAN>)(<SPAN style="COLOR: blue">Function</SPAN>(q)&nbsp;q.Where(<SPAN style="COLOR: blue">Function</SPAN>(u)&nbsp;u.UserName&nbsp;=&nbsp;Principal.Identity.Name))<BR></PRE><BR></PRE><PRE style="FONT-FAMILY: c&#111;nsolas">Any help would be greatly appreciated.</PRE></DIV>]]>
   </description>
   <pubDate>Tue, 27 Jul 2010 13:11:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2013&amp;PID=7828#7828</guid>
  </item> 
 </channel>
</rss>