April 2010 Blog Posts
Thursday, April 22, 2010 11:28 AM | Comments

This post is part of a series on customizing the Entity Framework T4 templates I have been using EF4 for a little while now, and have been taking advantage of the code-generation extensibility afforded to us by T4 templates. This series of posts will describe the enhancements I have made to the default T4 template, and how you can take advantage of this functionality yourself. Part 1 – Generate an IDatabase interface to represent your Data Context Part 2 - Derive entities from a custom base class Part 3 – Suppress Code Analysis warnings from the generated code Protip before we get started Before working with T4, you will absolutely want to install a helpful tool to...

Thursday, April 15, 2010 11:04 AM | Comments

I will be giving a talk at the Chicago Architects Group on Onion Architecture next week, details below. This is a completely free event, and of course, pizza will be provided. When Tuesday, April 20, 2010 from 5:00 PM - 8:00 PM (CT) Where TechNexus 200 S Wacker Drive Suite 1500 Chicago, IL 60606 Abstract Onion Architecture by Matt Hidinger Onion architecture exploits well-known patterns like dependency injection to promote true loose coupling between the core business logic and technical implementation details of an application.  Join us as we discuss this approach to building robust applications. Followed by open forum   CAG site: http://chicagoarchitectsgroup.com/ Registration: http://chicagoarchitectsgroup.eventbrite.com/   Technorati Tags: presentations,architecture

Monday, April 12, 2010 10:30 PM | Comments

Hopefully I didn’t completely miss the boat… People are still on twitter right? I heard rumors that everyone left and moved to foursquare? Technology is enough to make people of any age feel old. http://twitter.com/matthidinger

Wednesday, April 7, 2010 9:56 AM | Comments

Starting back in 2007 I read a series on Co/contra-variance in C# by Eric Lippert – Eric is on the compiler team at MS and one of my favorite bloggers to read I might add. At the time, I remember myself reading along with the words but my eyes completely glazing over. To be honest the concept mostly eluded me at the time, so I wanted to take this opportunity to describe the feature in a way that made the most sense to me. It Seems to Logical… Ask yourself the following questions: Is a List<string> also a List<object>? Is an IEnumerable<string> also an IEnumerable<object>? As you’ll see below, the answers to these questions depends entirely on the version of the C# compiler you are using. Turning our Questions into Tests Naturally,...