Mapping query string to object with AutoMapper
I have discovered AutoMapper开发者_开发问答 recently, and I´m thinking if I could mapping HttpConext
, (really query parameters) to a typed object.
The HttpRequest.QueryString is a NameValueCollection. So you could create some custom mapping for this like in the example here.
精彩评论