开发者

How to provide an EditorTemplate for IEnumerable<MyModel>?

开发者 https://www.devze.com 2023-03-14 20:23 出处:网络
Is it possible to provide an Editor Te开发者_StackOverflowmplate for IEnumerable (Or IList, List, MyModel[], for that matter)?I know this is a old post but what you can do is make a template called My

Is it possible to provide an Editor Te开发者_StackOverflowmplate for IEnumerable (Or IList, List, MyModel[], for that matter)?


I know this is a old post but what you can do is make a template called MyModelList that takes IEnumerable<MyModel> and then you can have a Html.EditorFor(x => x.MyModelList, "MyModelList")

0

精彩评论

暂无评论...
验证码 换一张
取 消