ViewModel with List<BaseClass> and editor templates
问题 I have a view that lists tables being added to a floor plan. Tables derive from TableInputModel to allow for RectangleTableInputModel , CircleTableInputModel , etc The ViewModel has a list of TableInputModel which are all one of the derived types. I have a partial view for each of the derived types and given a List of mixed derived types the framework knows how to render them. However, on submitting the form the type information is lost. I have tried with a custom model binder but because the