1 @inherits Microsoft.VisualStudio.Web.CodeGeneration.Templating.RazorTemplateBase
2 @using Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore
3 @using System.Collections.Generic
7 if (Model.IsPartialView)
10 @: For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
14 else if (Model.IsLayoutPageSelected)
17 @:ViewData["Title"] = "@Model.ViewName";
18 if (!string.IsNullOrEmpty(Model.LayoutPageFile))
20 @:Layout = "@Model.LayoutPageFile";
24 @:<h2>@Model.ViewName</h2>
37 @:<meta name="viewport" content="width=device-width" />
38 @:<title>@Model.ViewName</title>
42 if (Model.ReferenceScriptLibraries)
45 @:@@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
48 // 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
49 if (!Model.IsPartialView && !Model.IsLayoutPageSelected)