YES, you can have a "default" one with its name Book.cshtml ... and this one starts every time you use EditorFor .
You may have a different editor template for the book, letโs name it BookTheOtherWay.cshtml and there you will place your โother editorโ. Now when using EditorFor you just need to pass the template name as another parameter in the EditorFor template.
@Html.EditorFor(model => model.MyBook, "BookTheOtherWay" )
This works the same for DisplayTemplates and the DisplayFor helper.
@Html.DisplayFor(model => model.MyBook, "BookTheOtherWay" )
source share