Wednesday 24 February 2010 @ 2:58 pm
Here is a shorthand way for converting a list of strings defined as follows: List<string> strings = new List<string>
[...]
Monday 25 January 2010 @ 4:22 pm
Title Of Each Article Video Included With Each Post Part 1 Introduction To RIA Services In Silverlight (This Article) 7 Minutes Part 2 Basic RIA Services And DataGrid With VS 2010 Tooling 14 Minutes Part 3 Adding A DataGrid With Connect The Dots DataBinding in VS [...]
Friday 4 December 2009 @ 11:27 am
This one is just to amazing to not blog about. I’ve been a die heart ReSharper Icon that is) so I hovered over to see what it wanted.
And, I chose what it suggested, and wow! check this out. The way I should have coded it in the first place.
private static int GetTransitTime(string [...]
Sunday 8 November 2009 @ 10:49 am
Just a quick post in case anyone is wasting 10 minutes figuring out how to do this. For me, this came up because in encoding) So, in my C# code, here is what you need to convert to the Linq.Binary:Linq.Binary carrierMatrix =
new ASCIIEncoding().GetBytes(myString);And, to go back from Linq.Binary:string carrierMatrixString = [...]
Wednesday 14 October 2009 @ 5:35 pm
This is just going to be a short post, but I bet it’s something I do a large number of times so I thought I’d blog it. Say you get back from something like a web service an array of objects. In my case this:cmRateResult[] cmRateResults = TransiteUtils.MakeRateRequest(_cmRateRequest);
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier [...]
Monday 28 September 2009 @ 9:51 am
I often speak very highly of Group By,
Friday 18 September 2009 @ 10:49 am
I’ve done a bunch of Lat/Long type mapping programs over the years and one of the problems always ends up around performance. A common problem is that you keep redrawing the same line over and over and over. The pixels you are drawing don’t get any darker so all you are doing is [...]
Thursday 3 September 2009 @ 4:05 pm
So, I’m really enjoying using LINQ and specifically
Sunday 14 June 2009 @ 8:21 am
We’ve built a data access layer on top of LINQ2SQL for dynamically building the layer we call for data access. It’s convenient because we pass in a query object as a parameter that has a bunch of nullable variables in it. Here is kind of what it looks like: [...]
Tuesday 9 June 2009 @ 9:08 am
Last night, I had the honor of having dinner with three other LINQ in Action. Jim is a wealth of knowledge as well as very entertaining. He had an interesting analogy for what using try/catch statements to handle expected issues. I’ll leave it up to you to post to his twitter account and [...]
Monday 8 June 2009 @ 10:21 pm
So, I’ve been on kind of a rant lately about how slow uncompiled LINQ2SQL. So, to put some more substance behind my claims, I’ve written a small test application using Visual Studio 2008 that compares the performance of using LINQ2SQL compiled verses non-compiled on a trivial web page. Here are some [...]
Thursday 4 June 2009 @ 6:30 am
I’ve been doing a lot of LINQ2SQL lately and just in case I have not said it loud enough how enthusiastic I am about
Wednesday 3 June 2009 @ 6:27 pm
So, I recently blogged about the huge penalty for not compiling your LINQ2SQL. This problem is so big that it occurred to us that maybe all of LINQ has the problem. So, time for a simple test. Below is a very simple program that basically generates a list of Ids. In one case, [...]
Wednesday 3 June 2009 @ 10:02 am
So, this is very straight forward, but I sometimes forget it. I figure I’ll do a short blog post on it so next time I search for it, I’ll probably hit my own blog post. So, say you have a list of objects as follows: public partial class CompanyAddressResult : ResultBase
[...]
Wednesday 6 May 2009 @ 10:23 am
In this article, it is shown how important it can be to use the CompileQuery class when using LINQ to SQL. Doing a simple query in LINQ to SQL verses ADO.NET is shown to run 37 times slower without taking advantage of the Compile feature in LINQ to SQL. If you are doing the same query over and over in LINQ to SQL, this is a no brainer. I’m surprised I did not know this myself previously.
Wednesday 25 March 2009 @ 2:04 pm
Structure Map (IOC)
Error Handling
Social Network Schema Designs (Friends and Groups)
Messaging
Data Layers (
Thursday 4 December 2008 @ 9:13 pm
So, you want to do an update but are wondering what the hec LINQ is doing. Turns out it is really easy. All you have to do is run in the debugger and add the Log option to your data context. Here is an example: DataClassesGeneralDataContext db3pLogicContext;
[...]
Saturday 20 September 2008 @ 9:25 pm
Google looking for something similar to what I want, then I put it into my application and run it. This has worked pretty well, but it takes a couple iterations to get it right. It occured to me that someone probably has written a LINQ interpreter so I just guessed the name, Ben Albahari, (which [...]
Saturday 16 August 2008 @ 4:51 pm
In this post, we will discuss what is necessary to convert the file created from a Garmin 705 navigator to C# .net Data Objects. We will use LINQ to XML to perform this function
Thursday 3 July 2008 @ 8:33 am
Combining two mailing lists with LINQ, then removing a third is demonstrated in this post. Using C# 3.0 with .Net 3.5 allows us to leverage LINQ to make this an easy process. This post shows and explains the LINQ code to do this
|