MVCContrib input builder vs MVC 2 editor templates
-
22-09-2019 - |
문제
Is there any comparison? Pros and cons?
해결책
MVC 2 editor template is an evolution of MVCContrib input builder.
It's true that is missing a few things, like Darin Dimitrov said, but It's a fact that it's has a stronger architecture.
Pros:
- Have a special folder
EditorTemplates
under the shared folder AND under the view! (area supported too). In the older MVCContrib input builder you must put the templates in the a shared folder. In order to use it with a special folder you must add a new view engine that will look on this folder.
Cons:
None.
다른 팁
Pros of input builders: they can recognize attributes on the model such as MaximumStringLength
and set the maxlength
html attribute. They also can recognize the presence of the Required
attribute and put the required
class on the element.
Pros of editor templates: support of incremental sequencing.
제휴하지 않습니다 StackOverflow