AutoMapFilter meet IJoinedFilter

added by g0t4
1/3/2010 4:48:05 PM


A few weeks ago I blogged about the concept of a “joined” filter to apply filters to actions without attributes. I promised to demonstrate some practical uses, beyond the hello world example in that post, and now it is time to deliver :) Jimmy Bogard talks about how he does MVC view models using an AutoMapFilter to transform the model from the controller into the view model for the view. This is an excellent use of AOP to separate the concern of mapping from the concerns in the controller. When I saw this example, I thought to myself, is it possible to infer the types?