Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以为 IEnumerable(或 IList、List、MyModel[] 等)提供编辑器模板?
我知道这是一篇旧帖子,但你可以做一个名为的模板MyModelList,IEnumerable<MyModel>然后你可以有一个Html.EditorFor(x => x.MyModelList, "MyModelList")
MyModelList
IEnumerable<MyModel>
Html.EditorFor(x => x.MyModelList, "MyModelList")