LINQ to SQL and multiple result sets in Stored Procedures

In this post I’m going to demonstrate how you would return and consume multiple result sets from a stored procedure in LINQ to SQL. Imagine you have a stored procedure like this one below. Very simple – it’s just returns all customers and all orders. In my LINQ to SQL Data Context, I have the…

9

VS2008 Tip – Remove unused ‘using’ statements

Did you know that VS2008 has a great feature to remove any unused ‘using’ statements in your code? Simply right click anywhere in your code file, select ‘Organize Usings’ and select ‘Remove Unused Usings’. You then end up with only the using statements you are actually using! (no pun intended ;)) Other options include sorting…

1

Working with Virtual Machines in PowerShell, SCVMM and C#

Lately I’ve been experimenting with SCVMM and PowerShell, and I wondered how hard it would be to automate the creation of a Virtual Machine via C#. Well the good news is that’s it not that hard at all! In this post I’m going to demonstrate how to: Create a new VM Get an existing VM /…

13