for ASP.NET Core
·Razor Pages application
·MVC application
There are two types, but how should I use them separately?
What are the advantages and disadvantages of each application?
I created MVC in .NET and Razor Page in .NET Core.I think it doesn't matter which way you use it from the perspective of using it differently.
In MVC, View and Model are independent, but if you put a search box in View, you will definitely want a model related to View only.It's called ViewModel, but it's troublesome if you don't rule out the difference between this and the model used in DnContext.
The Razor Page has a PageModel derivative class, so the Model folder has only the Model to be used in DbContext, which looks great.So I'm going to do this.
For your information.
595 GDB gets version error when attempting to debug with the Presense SDK (IDE)
566 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
576 PHP ssh2_scp_send fails to send files as intended
877 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.