IValueProvider in MVC 2 RC 2

后端 未结 1 1540
悲&欢浪女
悲&欢浪女 2021-01-12 15:20

I have been working with MVC 2 and it seems that at some point of time the ModelBindingContext.ValueProvider class has been removed and replace with IValueProvider. Because

相关标签:
1条回答
  • 2021-01-12 15:50

    Gosh, that code looks familiar!

    You can't get a list of Key values from IValueProvider. You have to go to the source, e.g:

    var keys = controllerContext.HttpContext.Request.QueryString.AllKeys.Where(...
    
    0 讨论(0)
提交回复
热议问题