Quick SmartDispatcherController tip

by benl

If you’re using the SmartDispatcherController in your Monorail application, consider restricting the parameter store using the From property defined on the DataBindAttribute. You’ll get a small performance boost (as Monorail doesn’t have to go looking for whether the data is coming from querystring or form post) and you get the added benefit of preventing submits through querystring or form when it is not the intended behaviour.


public void Create([DataBind("contact", From=ParamStore.Form)] Contact contact)