ASP.NET MVC中Controller.ReadFromRequest的替换是什么?

Kev*_*ino 5 c# asp.net-mvc .net-3.5 entity-framework-ctp5

我正在尝试将项目从ASP.NET MVC预览3更新到预览5,似乎已从Controller类中删除了Controller.ReadFromRequest(字符串键).有没有人知道根据表单中的标识符检索信息的任何替代方法?

mat*_*att 3

看起来他们已经添加了controller.UpdateModel来解决这个问题,签名是:

UpdateModel(object model, string[] keys)
Run Code Online (Sandbox Code Playgroud)

我个人没有升级过我的应用程序,所以我不确定实际的使用情况。我自己也有兴趣了解这一点,因为我也在使用controller.ReadFromRequest