AutoMapFilter meet IJoinedFilter(geekswithblogs.net)

submitted by g0t4g0t4(15) 2 years, 4 months ago

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?

add a comment |category: |Views: 6

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story