DefaultModelBinder and collections of complex types [duplicate]
问题 This question already has answers here : Calling UpdateModel with a collection of complex data types reset all non-bound values? (3 answers) Closed 3 years ago . I have the following classes: public class ComplexType { public long? Code { get; set; } public string Name { get; set; } } public class TestViewModel { public List<SubModel> List { get; set; } public ComplexType ComplexTypeTwo { get; set; } public string StringTwo { get; set; } } public class SubModel { public ComplexType