Archive for the ‘.NET 3.5’ Category

Extensibility in ASP.NET MVC Via Messaging

Alright kids, buckle your seats because we’re about to drop some science. One of the core features of ASP.NET MVC is extensibility, and in this post I’m going to show how extensible it can be. You can provide significant functionality to your codebase and still allow it to be small and flexible.
Read On


Use LINQ’s Select and Initializers to Make Mapping Easier

Mapping data between types on a Web Service can be a collosal pain. There are various frameworks out there that can speed things up, but sometimes you just need to do it by hand. Fortunately some of the features introduced with C# 3 can help speed things up.
Say the type on the server looks like [...]


More Fancypants LINQ Fun

Say you had an object model that was generated from a database like so:
public class Lecture {
public List<Speaker_Lecture> Speakers { get; set; }
}

public class Speaker_Lecture {
public Lecture Lecture { get; set; }
public Speaker Speaker { get; set; }
}

public class Speaker {
public string Name { get; set; }
}
Unfortunately, you’re stuck with that semi-ugly Speaker_Lecture model, and [...]