开发者

Mapping query string to object with AutoMapper

开发者 https://www.devze.com 2023-04-12 19:18 出处:网络
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.

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

精彩评论

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

关注公众号