ninject-2

ASP.NET MVC 3: DefaultModelBinder with inheritance/polymorphism

核能气质少年 提交于 2019-11-26 10:53:48
问题 First, sorry for the big post (I\'ve tried to do some research first) and for the mix of technologies on the same question (ASP.NET MVC 3, Ninject and MvcContrib). I\'m developing a project with ASP.NET MVC 3 to handle some client orders. In short: I have some objects inherited from and abstract class Order and I need to parse them when a POST request is made to my controller. How can I resolve the correct type? Do I need to override the DefaultModelBinder class or there are some other way to