Skip to content

Commit 5254016

Browse files
Creating a partial view now inherits from UmbracoTemplatePage (in 6.2.0 there will be 2 snippets, one for UmbracoViewPage<dynamic>, for MVC experts and one for UmbracoTemplatePage, the default).
1 parent 2b408df commit 5254016

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Umbraco.Web/umbraco.presentation/umbraco/create/PartialViewTasks.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ protected virtual void WriteTemplateHeader(StreamWriter sw)
9494
{
9595
//write out the template header
9696
sw.Write("@inherits ");
97-
sw.Write(typeof(UmbracoViewPage<>).FullName.TrimEnd("`1"));
98-
sw.Write("<dynamic>");
97+
sw.Write(typeof(UmbracoTemplatePage).FullName.TrimEnd("`1"));
9998
}
10099

101100
public bool Delete()

0 commit comments

Comments
 (0)