6
Shouts

AutoMapFilter meet IJoinedFilter

published 863 days, 13 hours, 31 minutes ago posted by https://www.google.com/accounts/o8/id?id=AItOawkLwmbnQ2n9FBrkcwYSLaaqpKjp_9c8DDYhttps://www.google.com/accounts/o8/id?id=AItOawkLwmbnQ2n9FBrkcwYSLaaqpKjp_9c8DDY 864 days, 3 hours, 25 minutes ago
Monday, January 04, 2010 1:17:35 PM GMT Sunday, January 03, 2010 11:23:01 PM GMT

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?

category: ASP.NET | clicked: 1 | | source: geekswithblogs.net | show counter code
tags: IoC, AOP, MVC

1 comment posted.

To post your comment please login or signup