Skip to content

Commit

Permalink
Update Razor page template to use file-scoped namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed Jul 10, 2021
1 parent 8d70305 commit c9428c1
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace MyApp.Namespace
{
namespace MyApp.Namespace;

#if NameIsPage
public class IndexModel : Microsoft.AspNetCore.Mvc.RazorPages.PageModel
public class IndexModel : Microsoft.AspNetCore.Mvc.RazorPages.PageModel
#else
public class IndexModel : PageModel
public class IndexModel : PageModel
#endif
{
public void OnGet()
{
public void OnGet()
{
}
}
}

0 comments on commit c9428c1

Please sign in to comment.