Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

T4MVC now with multiple file support

Ok, so I’m indulging in self-publicity a little with this post, but I really want to take the opportunity to highlight some great work that David Ebbo has done. I’ve been spending a bit of time with ASP.NET MVC Framework and really like it. The combination
Posted by stuartle | 0 Comments

Options for creating a test project

I was rooting through the Tools\Options dialog in Visual Studio recently and noticed the following options for Test projects: Whilst these are probably reasonable defaults in terms of discoverability of features, I’ve always found that the first thing
Posted by stuartle | 0 Comments
Filed under:

Setting the window title for a command prompt

Very quick tip in what seems to have become a mini-series ( Part 1 , Part 2 ). I often find myself with a number of command windows open and switching between them can be problematic. To address this I use the “title” command to set the window title,
Posted by stuartle | 0 Comments
Filed under: ,

Finding files in your path environment

Occasionally I’m working at the command prompt and have a utility that is in the path environment, but need to find where the file actually is. So, I wrote a little batch file that does exactly that @echo off echo Searching path for %1 if "%~$PATH:1"==""
Posted by stuartle | 0 Comments

PowerShell script to clean and zip a directory

As part of my role I’m often sending sample code to customers. Sometimes this is a small snippet inline in an email, but often it will be a zipped up Visual Studio solution. Simply zipping up the folder as-is ends up including bin and obj directories
Posted by stuartle | 0 Comments
Filed under: ,

Quickly creating an Outlook rule

I’ve had a couple of conversations with people recently where they’ve said that they keep meaning to set up an Outlook rule to move specific messages to a separate folder. On each occasion the need to navigate the Tools\Rules And Alerts window seems to
Posted by stuartle | 0 Comments
Filed under:

Adding links containing spaces to an email message

Possibly slightly off-topic for this blog, but so far I’m doing quite a good job of not settling down on a single topic ;-) Outlook has the nice feature that if you type something that looks like a link into an email, it will automatically create the
Posted by stuartle | 2 Comments
Filed under:

ADPlus, Windows 7 and ASP.Net

I’ve been working through some crash dumps with ADPlus and WinDBG recently and hit a couple of snags that seem to be related to running ADPlus on Windows 7. John Robbins gives details of the first issue I hit and points out that the output from tlist.exe
Posted by stuartle | 2 Comments
Filed under:

Improving ObjectQuery<T>.Include – Updated

Having spent some time using the sample from my previous post on ObjectQuery.Include, I’ve encountered a bug! It turns out that the code generates the wrong include string for context.Customers.Include(c => c.Order.SubInclude(o=>o.OrderDetail))
Posted by stuartle | 1 Comments
Filed under: ,

Cheating at Scrabble with LINQ to Objects

I read an interesting post on Eric Lippert’s blog recently where he was using LINQ to Objects to find possible words from a set of letters in Scrabble (he wasn’t actually cheating – that just makes for a more interesting title!). Eric made a great follow-up
Posted by stuartle | 4 Comments
Filed under: ,

Creating database connections with Unity – part 2

Last time we looked at how to set up the configuration file so that Unity would wire up an object that took an IDbConnection parameter in its constructor. Whilst the solution works, it is easy for the various connection strings to become buried away in
Posted by stuartle | 3 Comments
Filed under: ,

Creating database connections with Unity

I was adding dependency injection to an existing project and opted to use Unity configured via the application configuration file. As I was running through the configuration, I hit a type that required a  database connection which it took in as an
Posted by stuartle | 3 Comments
Filed under: ,

Microsoft AutoCollage 2008

I just thought I’d mention that Microsoft AutoCollage 2008 has been released. It is based on research from Microsoft Research in Cambridge and allows you to automatically create collages of images (not that you’d have guessed it from the name ;-) ). You
Posted by stuartle | 2 Comments

DataServiceQuery<T>.Expand

ADO.Net Data Services allows you to expose your LINQ To Entities model (or LINQ To SQL model, or even your custom IQueryable model) via a REST ful API with minimal coding. For example, if you’re working with the Northwind database you can use the URL

Improving ObjectQuery<T>.Include

** UPDATE: There’s a bug in the code below – see this post for the update! One of the great features of LINQ To SQL and LINQ To Entities is that the queries you write are checked by the compiler, which eliminates typing errors in your query. Unfortunately,
Posted by stuartle | 13 Comments
More Posts Next page »
 
Page view tracker