Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Have fun! It's a bit more involved than your average framework but it all makes sense after working with it for a while
-
Quick question, What is the difference between Razor Project and MVC Project?
I read online that Razor projects are more like good old webforms -
@dontbeevil nope, when you do dotnet new, you see a razor website and mvc as two different options, MVC as you know puts controllers and views folder, while in razor, controller and razor page are in pages folder and endpoints are automatically picked up for each razor file in pages folder
-
BashouT5746y@gitpush personally I work with MVC on a daily basis in my working life. As others have said the main difference is the structure of the solution.
In my personal research Razer pages seems to make a lot of more sense from a solid perspective as each file will handle one endpoint, whereas in MVC you'll need to find each respective file to make a potentially very rudimentary change.
Take my opinion as a pinch of salt, but I do intend to work more with razer pages in the future. -
@BashouT thanks man, I don't do As.net websites but I use WebAPI, and each controller represents an endpoint,how is a website different? Excuse my noob question but I thought that each controller is meant for a single thing
-
BashouT5746y@gitpush Well in Web API and MVC each controller would act as a collection of endpoints such as a user controller would allow you to edit, fetch delete etc a user.
However in razer you have one file per endpoint with all associated html, class definition within, if that makes sense -
@BashouT aah now I understand, but I recall reading that it will only detect what's inside Pages folder, can it have nested folders ? Cuz their template throws everything in Pages root
-
BashouT5746y@gitpush yeah I'm fairly certain folders can be nested. When I looked at it last it did create a nested solution
Related Rants
Excited to start learning asp net core
random
.netcore
c#