105 Security: Server Side Authorization. Views. - chempkovsky/CS82ANGULAR GitHub Wiki
- aspnetmodelView
- aspnetroleView
- aspnetrolemaskView
- aspnetuserView
- aspnetusermaskView
- aspnetuserpermsView
- aspnetuserrolesView
Security has two aspects: Authentication and Authorization
read the following article as reminder
- Before we start run "File explorer" and open the folder
%appdata%
- navigate to subfolder
-
%appdata\Local\Microsoft\VisualStudio\17.0_05e4ae16\Extensions\bih0ep3d.wkk\Templates\ContextsToImport%- "17.0_05e4ae16" and "bih0ep3d.wkk" folders were generated dynamically at installation time. So in your case these will be other names!
-
Click to show the picture

- copy "aspnetchckdbcontext.json" file in a temporary place where it will be easy to open with "Open File"-Dialog
- Suppose, it'll be "E:\Development"-folder
- So, new file name with a path will be "E:\Development\aspnetchckdbcontext.json"
- This file will be used in the next steps
- Suppose, it'll be "E:\Development"-folder
-
right click
Auth-folder ofPhBkViews.csproj-project and run ModelViews Wizard -
On the first page click
Next-button -
On the second page select
-
PhBkContext.csproj-project -
aspnetchckdbcontext-DbContext
-
-
On the third page select
-
PhBkEntity.csproj-project -
aspnetmodel-Entity
-
Click to show the picture

- On the fourth page
- click 'Import'-button
-
Open file-dialog will be shown- select "E:\Development\aspnetchckdbcontext.json"-file (we mentioned this file above)
- click
Open-button in the dialog
-
- click 'Import'-button
Click to show the picture

- On the fourth page again
- check
Select View-Checkbox - select
aspnetmodelViewin the combo - click
Next-button
- check
Click to show the picture

- On the fifth page
- the setting must be as shown below
- Click
Next-button
Click to show the picture

-
On the sixth page
- select
ViewModel.cs.t4-script - click
Next-button
- select
-
On the seventh page
- click
Save-button - click
Next-button
- click
-
On the eighth page
- select
ViewModelPage.cs.t4-script - click
Next-button
- select
-
On the ninth page
- click
Save-button
- click
- repeat the steps as those described for aspnetmodelView
- On the fifth page
- the setting must be as follows
- Click
Next-button
Click to show the picture

- repeat the steps as those described for aspnetmodelView
- On the fifth page
- the setting must be as follows
- Click
Next-button
Click to show the picture

- repeat the steps as those described for aspnetmodelView
- On the fifth page
- the setting must be as follows
- Click
Next-button
Click to show the picture

- repeat the steps as those described for aspnetmodelView
- On the fifth page
- the setting must be as follows
- Click
Next-button
Click to show the picture

- repeat the steps as those described for aspnetmodelView
- On the fifth page
- the setting must be as follows
- Click
Next-button
Click to show the picture

- repeat the steps as those described for aspnetmodelView
- On the fifth page
- the setting must be as follows
- Click
Next-button
Click to show the picture
