开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜