14

Excited to start learning asp net core

Comments
  • 3
    You'll love it... Specially c# side
  • 5
    Have fun! It's a bit more involved than your average framework but it all makes sense after working with it for a while
  • 2
    It's really good. I like it. Good luck :) !
  • 0
    Quick question, What is the difference between Razor Project and MVC Project?
    I read online that Razor projects are more like good old webforms
  • 0
    @gitpush that's interesting, I just used MVC, but in the view you need to use always razor ... maybe are you referring to Blazor?
  • 1
    @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
  • 1
    @gitpush thanks, didn't notice
  • 1
    @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.
  • 2
    @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
  • 1
    @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
  • 1
    @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
  • 1
    @gitpush yeah I'm fairly certain folders can be nested. When I looked at it last it did create a nested solution
  • 1
    @BashouT great, gonna give up t a try and see what how it goes
  • 0
  • 1
    @jAsE So I should invest time in Razor rather than MVC?
  • 1
    @jAsE Will give it a try thanks man :D
Add Comment