ModelBinder CSLA

ModelBinder CSLA

Old forum URL: forums.lhotka.net/forums/t/11246.aspx


xequence posted on Wednesday, March 21, 2012

Is there an example of how to achieve this in CSLA?

http://dotnetslackers.com/articles/aspnet/ASP-NET-MVC-Dynamic-Model-Binding.aspx

http://jingding.blogspot.com/2012/01/aspnet-mvc-dynamic-model-binding.html

RockfordLhotka replied on Wednesday, March 21, 2012

I've never looked into doing this. But skimming through the first link you provided, I see that the author subclassed the standard model binder to get the desired result.

I suspect you could subclass CslaModelBinder and take the same steps he took to get a similar result with a CSLA object.

Copyright (c) Marimer LLC