Aney Adventures Online
To understand your parents' love, you must raise children yourself.

I've Left Query Analyzer Hell For LINQPad Heaven

Thursday, 4 December 2008 01:29 by Terry Aney

So now that LINQPad has enabled intellisense SQL Server Management Studio, Query Analyzer, and even Joseph Albahari's (LINQPad creator) own QueryEx have all been zapped from my memory.  I'll no longer flounder in antiquated ANSI SQL, but instead flourish in fully typed C#/LINQ code.... [More]

Currently rated 5.0 by 4 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   C# | Extension Methods | LINQ
Actions:   E-mail | Permalink | Comments (10) | Comment RSSRSS comment feed

LINQ to SQL Batch Updates/Deletes: Fix for 'Could not translate expression'

Sunday, 20 April 2008 23:10 by Terry Aney

I've found and posted a new fix in the code from my original post: Batch Updates and Deletes with LINQ to SQL.  I'm not sure of the etiquette for this sort of thing: new post (like I'm doing) or just a comment in the original post.  But since I did get a fair amount of hits to the article but minimal comments, people who may have downloaded the code wouldn't get an update notification and I want to be sure to make them aware of an issue/fix (assuming they are monitoring via a RSS feed).... [More]

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   C# | LINQ
Actions:   E-mail | Permalink | Comments (12) | Comment RSSRSS comment feed

Batch Updates and Deletes with LINQ to SQL

Monday, 14 April 2008 04:07 by Terry Aney

A couple weeks ago, I read the article, LINQ to SQL Extension: Batch Deletion with Lambda Expression by Jeffrey Zhao.  In case you didn't read the article, it discusses the downside of most O/R Mapping frameworks when it comes to multiple updates or deletes.  He states the fact that a SQL statement for each row flagged as update/delete in the entity set is created.  I went about implementing something similar to what Jeffrey envisioned and I'll explain some of the hurdles I had to overcome to achieve it.... [More]

Currently rated 4.8 by 24 people

  • Currently 4.75/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   C# | Extension Methods | LINQ
Actions:   E-mail | Permalink | Comments (32) | Comment RSSRSS comment feed

Moving from an Excel xla add-in to a C# add-in

Saturday, 12 April 2008 05:29 by Terry Aney

At my day job, we use Microsoft Excel spreadsheets as a pseudo "specification document" (spec sheet) for the websites, which are actuarial in nature, we create.  At the time (several years back), since we chose Excel, obviously we needed an add-in for the few automated processes we supported and we needed something immediately (you know how it goes in small companies).  The easiest way for us to create the add-in we needed was to create an Excel add-in file (*.xla).  My background (5-6 years ago) was from VB6 anyway, so even though I'd switched to C#, VB6 was still fresh in my mind and writing VBA was a breeze - whether the code was clean or not, I've got not comment ;).  I've recently made the decision to migrate an existing Microsoft Excel Add-In (*.xla) file to managed C# code.  There were several motivating factors to this decision along with almost as many speed bumps... [More]

Currently rated 5.0 by 6 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5