【发布时间】:2009-06-30 18:58:48
【问题描述】:
使用默认的 ModelBinder 及其属性 Bind,我们可以像这样设置前缀:
public ActionResult Save([Bind(Prefix="test")] Person p)) {
}
我有一个 CustomModelBinderAttribute,它返回一个定制的 ModelBinder:
public ActionResult Save([PersonBinderAttribute(Prefix="test2")] Person p)) {
}
如何从我的定制模型绑定器中访问 Prefix 的值?
【问题讨论】:
标签: asp.net-mvc model