<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WebLog of Ken Cox - All Comments</title><link>http://weblogs.asp.net/kencox/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: Visual Studio 2008 SP1 Adds JavaScript Formatting</title><link>http://weblogs.asp.net/kencox/archive/2008/08/13/visual-studio-2008-sp1-adds-javascript-formatting.aspx#7249180</link><pubDate>Sun, 08 Nov 2009 07:49:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7249180</guid><dc:creator>Melwin</dc:creator><description>&lt;p&gt;Javascript formatting was driving me crazy, until I did some search and found this post. Thanks a lot!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7249180" width="1" height="1"&gt;</description></item><item><title>re: Fixing the System.Data.UpdateException – DefiningQuery  and no &lt;InsertFunction&gt; Error</title><link>http://weblogs.asp.net/kencox/archive/2009/09/09/fixing-the-system-data-updateexception-definingquery-and-no-lt-insertfunction-gt-error.aspx#7243906</link><pubDate>Sat, 31 Oct 2009 15:01:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7243906</guid><dc:creator>squorpeeon</dc:creator><description>&lt;p&gt;At least you didn&amp;#39;t called a &amp;quot;dumb**s&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks for the quick fix.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7243906" width="1" height="1"&gt;</description></item><item><title>re: Fixing the System.Data.UpdateException – DefiningQuery  and no &lt;InsertFunction&gt; Error</title><link>http://weblogs.asp.net/kencox/archive/2009/09/09/fixing-the-system-data-updateexception-definingquery-and-no-lt-insertfunction-gt-error.aspx#7235537</link><pubDate>Thu, 22 Oct 2009 05:25:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7235537</guid><dc:creator>purs</dc:creator><description>&lt;p&gt;Thank you :) the post really helped me to figure out the error quickly.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7235537" width="1" height="1"&gt;</description></item><item><title>re: VS 2010 Product Release Date? March 22, 2010</title><link>http://weblogs.asp.net/kencox/archive/2009/10/19/vs-2010-product-release-date-try-march-22-2010.aspx#7235231</link><pubDate>Wed, 21 Oct 2009 19:42:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7235231</guid><dc:creator>Fabiano</dc:creator><description>&lt;p&gt;Nice post. &amp;nbsp;I just noticed TFS Beta 2 doesn&amp;#39;t support Windows 2003 64-bit edition. &amp;nbsp;I am wondering whether the final TFS release will support it or not...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7235231" width="1" height="1"&gt;</description></item><item><title>re: Fixing the System.Data.UpdateException – DefiningQuery  and no &lt;InsertFunction&gt; Error</title><link>http://weblogs.asp.net/kencox/archive/2009/09/09/fixing-the-system-data-updateexception-definingquery-and-no-lt-insertfunction-gt-error.aspx#7230521</link><pubDate>Thu, 15 Oct 2009 11:30:14 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7230521</guid><dc:creator>Kevin Haesendonckx</dc:creator><description>&lt;p&gt;Thanks man, this helped me a lot, keep up the good work&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7230521" width="1" height="1"&gt;</description></item><item><title>re: Windows 7 Ultimate Signature Edition w/ Party Pack</title><link>http://weblogs.asp.net/kencox/archive/2009/10/09/windows-7-ultimate-signature-edition-w-party-pack.aspx#7230112</link><pubDate>Wed, 14 Oct 2009 23:02:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7230112</guid><dc:creator>Ken Cox [MVP]</dc:creator><description>&lt;p&gt;@Joseph: It's odd that MS hasn't taken action. Recall that Microsoft was pretty quick to sic the lawyers on Canadian highschool student Mike Rowe for daring to use his name in a domain name called MikeRoweSoft.com.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7230112" width="1" height="1"&gt;</description></item><item><title>re: Windows 7 Ultimate Signature Edition w/ Party Pack</title><link>http://weblogs.asp.net/kencox/archive/2009/10/09/windows-7-ultimate-signature-edition-w-party-pack.aspx#7230079</link><pubDate>Wed, 14 Oct 2009 22:23:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7230079</guid><dc:creator>Joseph Sherbaugh</dc:creator><description>&lt;p&gt;Yes , I know I even called Microsoft to report it and the said you can not sell those copies!! People just do not think before they act.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7230079" width="1" height="1"&gt;</description></item><item><title>re: Animation on MSDN Web Pages?  No Thanks</title><link>http://weblogs.asp.net/kencox/archive/2009/10/13/animation-on-msdn-web-pages-no-thanks.aspx#7229820</link><pubDate>Wed, 14 Oct 2009 16:01:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7229820</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;That animation is particularly not useful because you can&amp;#39;t read it in the time it sits between changes.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7229820" width="1" height="1"&gt;</description></item><item><title>re: Animation on MSDN Web Pages?  No Thanks</title><link>http://weblogs.asp.net/kencox/archive/2009/10/13/animation-on-msdn-web-pages-no-thanks.aspx#7229539</link><pubDate>Wed, 14 Oct 2009 08:08:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7229539</guid><dc:creator>Rob</dc:creator><description>&lt;p&gt;If anything the animation is a minor concern. Granted it&amp;#39;s a pain, but the bigger problem is the advertising.&lt;/p&gt;
&lt;p&gt;If this is a site that is supposed to enable developers, don&amp;#39;t advertise 3rd party apps to/at them, give them the info they need, don&amp;#39;t distract them.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7229539" width="1" height="1"&gt;</description></item><item><title>re: Converting VB LINQ to C# LINQ</title><link>http://weblogs.asp.net/kencox/archive/2008/07/30/converting-vb-linq-to-c-linq.aspx#7225503</link><pubDate>Thu, 08 Oct 2009 14:05:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7225503</guid><dc:creator>Michael Fielding</dc:creator><description>&lt;p&gt;I tried using the program to convert the following LINQ query to C#:&lt;/p&gt;
&lt;p&gt;Dim qry = From d In _rawData _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Order By d.FormatName, d.QualityName _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Group d By d.FormatName, d.QualityName _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Into MyAvg = Average(d.GrossWeeklyPanelRate), MyCount = Count(d.GrossWeeklyPanelRate), _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyMin = Min(d.GrossWeeklyPanelRate), MyMax = Max(d.GrossWeeklyPanelRate)&lt;/p&gt;
&lt;p&gt;Which resulted in:&lt;/p&gt;
&lt;p&gt;var qry = from d in _rawData &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;orderby d.Format, d.Quality &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group d by new &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d.Format, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d.Quality &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;into g &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;let FormatName = g.Key.Format &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;let QualityName = g.Key.Quality&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;let MyAvg = g.Average(d.GrossWeeklyPanelRate) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;let MyCount = g.Count(d.GrossWeeklyPanelRate) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;let MyMin = g.Min((d.GrossWeeklyPanelRate) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;let MyMax = g.Max(d.GrossWeeklyPanelRate) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select new { FormatName, QualityName, MyAvg, MyCount, MyMin, MyMax };&lt;/p&gt;
&lt;p&gt;However, I get an error in the aggregate function: The name &amp;#39;d&amp;#39; does not exist in the current context. How am I to get the average, count, minimum and maximum of a field with my data?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7225503" width="1" height="1"&gt;</description></item></channel></rss>