gimmi / extdirecthandler

Ext Direct router implementation for ASP.NET
http://gimmi.github.com/extdirecthandler/
Other
13 stars 11 forks source link

New metadata property support #21

Open nikolaybobrovskiy opened 9 years ago

nikolaybobrovskiy commented 9 years ago

As stated in 5.1 what's new: "Full metadata support

One of the frequently requested features for Direct subsystem was support for passing metadata with CRUD operations in a Proxy. Previously this was implemented only for Read operations using extraParams property on the Proxy; unfortunately that approach made it near impossible to support CUD operations as well.

Starting with Ext JS 5.1, any Direct method invocation can be supplied with metadata that will be passed to the server side separately from method arguments. This feature is immediately available with Direct proxy as well via the new metadata property that can be used instead of extraParams with full range of CRUD operations."

http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.data.proxy.Direct-cfg-metadata

gimmi commented 9 years ago

Hi Nikolay, I didn't do ext development in a while so I was not aware of tihs new feature. It makes sense to add support for it in ExtDirectHandler project. Do you have some link to some documentation on how this metadata is passed to the server? Also how do you think these metadata should be exposed in the server side method?

Of course, a pull request would be highly appreciated :-)