Technical Ramblings of a .NET Developer
Search RSS feed

Auto-Notifying View Models in Silverlight and WPF

March 12, 2012

Many aspects of the MVVM architecture for Silverlight and WPF development permit easy and seamless integration with the XAML markup. However, the time consuming and awkward task of raising property changed notifications for every bounded view model property leaves much to be desired. Luckily, we can leverage dynamic proxies, generated during runtime, to automatically raise property changed notification events, significantly reducing the amount of effort, time, and number of lines required to implement custom view models. [Full Article]

Categories: Microsoft .NET  |  Tags: .NET 4.0  WPF  Silverlight  MVVM  C# 

Randomizing Enumerables via Extension Methods

January 22, 2012

Randomize all the values in an IEnumerable or choose a random value using extension methods and LINQ, enumerating the collection only once. [Full Article]

Categories: Microsoft .NET  |  Tags: LINQ  Extensions 

Rendering Microsoft .NET 4.0 Charts in ASP.NET MVC

January 21, 2012

Render Microsoft Charting 3D Charts the easy way in ASP.NET MVC in a straight-forward, cacheable, and easy to implement solution. [Full Article]

Categories: Microsoft .NET  |  Tags: MVC  .NET 4.0  C# 

Removing Visual Studio WebSite Root Folder Development Server URL

December 17, 2011

Visual Studio's included ASP.NET Development Server includes the project base directory name in the default debugging URL for non-compiled ASP.NET websites. This default virtual path causes trouble with non-relative Uri's, including CSS and JavaScript includes [Full Article]

Categories: Microsoft .NET  |  Tags: Visual Studio 

Find and Add Missing Indexes Recommended by SQL Server

December 13, 2011

When SQL Server creates a non-optimal execution plan (ie: the query could be significantly improved with the correct index), SQL Server stores the missing index information for later retrieval. This information is extremely useful in optimizing database performance, yet is rarely utilized by software developers. Since, adding the correct index, when needed, is the fastest way to reduce table scans and improve application performance, the missing index feature of SQL Server warrants periodic attention. [Full Article]

Categories: SQL Server  |  Tags: T-SQL  Performance  SQL 

Defragging SQL Indexes

December 13, 2011

Similar to hard drives, each time data in a SQL index is added, deleted, or updated, the index has the potential to become fragmented. The ultimate result is that SQL queries will take a less than optimal time to execute. Just as defragging a hard drive can improve performance, defragging SQL Server indexes can improve performance significantly. [Full Article]

Categories: SQL Server  |  Tags: T-SQL  Performance  SQL