1 @inherits Microsoft.VisualStudio.Web.CodeGeneration.Templating.RazorTemplateBase
2 @using Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore
3 @using System.Collections.Generic
7 if (!Model.NoPageModel)
9 @:@@model @Model.NamespaceName.@Model.PageModelClassName
11 if (Model.IsPartialView)
14 @: For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
18 else if (Model.IsLayoutPageSelected)
21 @:ViewData["Title"] = "@Model.ViewName";
22 if (!string.IsNullOrEmpty(Model.LayoutPageFile))
24 @:Layout = "@Model.LayoutPageFile";
28 @:<h2>@Model.ViewName</h2>
41 @:<meta name="viewport" content="width=device-width" />
42 @:<title>@Model.ViewName</title>
46 if (Model.ReferenceScriptLibraries)
49 @:@@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
52 // The following code closes the tag used in the case of a view using a layout page and the body and html tags in the case of a regular view page
53 if (!Model.IsPartialView && !Model.IsLayoutPageSelected)