loading...

Razor Pages - Not For Shaving!

zoltanhalasz profile image Zoltan Halasz ・1 min read

This is absolutely fantastic! Easier to understand than MVC, and some additional features vs old .net Razor pages! Using Entity Framework Core.

(article appeared on my blog https://mydev-journey.blogspot.com/2019/11/razor-pages-not-for-shaving.html)

What is Razor pages?

a. ASP.NET Core Razor Pages is a page-focused framework for building dynamic, data-driven web sites with clean separation of concerns.

b. Razor Pages can make coding page-focused scenarios easier and more productive than using controllers and views.

Best tutorials, I did them all:

  1. https://www.learnrazorpages.com/razor-pages/tutorial/bakery
  2. https://docs.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-2.2&tabs=visual-studio
  3. https://kenhaggerty.com/
  4. https://www.codeproject.com/Articles/1263791/ASP-NET-Core-Razor-Pages-Using-EntityFramework-Cor 5.https://www.youtube.com/watch?v=vh0UqlnM0Jw

Currently I build a small project, using EF core, which connects to an Azure database.It has aprox 15 pages, and uses a lot of Linq expressions.
Guys, did any of you have contact with this technology?
Do you have any tips?

Discussion

pic
Editor guide
Collapse
nstubbe profile image
Niels Stubbe

If you like Razor pages, check out the new Blazor Serverside. Same syntax, but with a focus on reusable web UI components. Feels like Angular, Vue, etc... but with C#.

It's just been released in .NET Core 3.0.

Collapse
zoltanhalasz profile image
Zoltan Halasz Author

Thank you. For now, my project is in .Net core 2.2, I leave it as it is. But clearly in 2020 will train myself for .Net core 3.0.

If you still have something for 2.2, in respect of Razor pages, let me know. :)