Home > Net >  .net core MVC template choose personal authentication Identity area after the Account controller in
.net core MVC template choose personal authentication Identity area after the Account controller in

Time:09-17


As shown in the figure to choose new project template, can be run directly see


But the file is not found in the area of Identity under the Account controller


Now want to directly on the content of the original controller, but I couldn't find the Account controller
Bosses, where the controller changes?

CodePudding user response:

Controller concept is for the whole page request, not for the department page,

CodePudding user response:

reference 1st floor interacting in a professional developer response:
controller concept is for the whole page request, not for department page,

Yes, yes, the problem is even can't find the controller

CodePudding user response:

Some say asp.net MVC Controller at this time to write to the CSHTML file, this is actually very pit dad, because the purpose of the MVC pattern is to separate the View and Controller,

So this razor is actually return ASP the most primitive, the lowest level form, straightforward, with no V C separation mode, the function of C # code to write directly to the page, no longer make what MVC, if V and C code and interspersed with mixed together is a kind of MVC (like some books said), that I really admire this mess with the imagination of the MVC pattern, said when I was 13 years ago, Microsoft asp.net MVC promotion because C is independent of program module can be individually test C part, that's what the MVC of formal concept,

CodePudding user response:

refer to the second floor WQRICM response:
yes, yes, the problem is even can't find the controller


There is no controller,

Only by some people (even Microsoft sales personnel) often disorderly change the habit of concept, probably they insist the regression of ASP, PHP server-side script form is MVC pattern?

CodePudding user response:

reference 4 floor interacting in a professional developer response:
Quote: refer to the second floor WQRICM response:

Yes, yes, the problem is even can't find the controller


There is no controller,

Only by some people (even Microsoft sales personnel) often disorderly change of the concept of habit, chances are they insist that return ASP, PHP server-side script form is also the MVC pattern,

That this situation may also alter the login logic based on template?

CodePudding user response:

reference 4 floor interacting in a professional developer response:
Quote: refer to the second floor WQRICM response:

Yes, yes, the problem is even can't find the controller


There is no controller,

Only by some people (even Microsoft sales personnel) often disorderly change of the concept of habit, chances are they insist that return ASP, PHP server-side script form is also the MVC pattern,

This template is how to control the login logic, the login page, and the management of user code written in the book? Because I tried this template, can be registered login, and the management of user information, only the code written in the book? Where to change

CodePudding user response:

C # business processing code to mix with the HTML code to write on the template!

CodePudding user response:

Well,

Asp is a Microsoft invented in the 90 s,

PHP learn it too late,

CodePudding user response:

Right-click the project - add - foundation frame for the new build project

Then choose logo

Add logo, select layout, pay attention to the context to select,

So you can see what you want in the Account

CodePudding user response:

refer to 7th floor interacting in a professional developer response:
business processing code to mix with the HTML code to c # written in the book of the template!
true his mama bull Microsoft.net core framework to get the thief chicken and egg pain also estimates for all want to abandon the net

CodePudding user response:

Do you want to change the Identity under the area of the whole piece of content, is already a Razor Class Library,
You can use the Add & gt; New Scaffolded Item, you want to change the page, code, or all of the pages and code added to your project, again modification,
The document here,
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity? View=aspnetcore - 3.1 & amp; Tabs=visual - studio
Document without figure, look a little tired, but you two will understand the operation, actually very simple,
Because it is based on the Razor Page without controller, indeed, oh,

CodePudding user response:

Routing points to is this file?

CodePudding user response:

Did you find the account, I met the same problem
  • Related