What is the cleanest, most ASP.NET MVC3 way, for lack of a better term, to model a collection of finite count and display the web form using Razor?
I understand I can throw a List in the model and loop through it in the view, but that would not in any way automagically tell EditorFor to render a finite number of text boxes or whatever it is I want.
Is there any more automatic way to build a view model that works in conjunction with the Razor view to tell it exactly how many items I want in my collection and thus it could automatically render the right number of form elements?
foreachsyntax?