E1.23 Php Symfony Security Step 4: Import ViewModel definitions (Wpf, Xamarin, Angular SPA, Reactjs SPA) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki
Note:
Current step does not require creation any C# classes
Before we start
- Before we start run "File explorer" and open the folder
- %appdata%
- Then go to "%appdata%\local"
-
At the end open the folder "%appdata%\Local\Microsoft\VisualStudio\XXX\Extensions\YYY", where "XXX" and "YYY" are the names that were defined during the CS2WPF installation and may differ from those shown in the figure below. This is the folder where CS2WPF was installed.
-
navigate to subfolder
- %appdata\Local\Microsoft\VisualStudio\16.0_5e517fbc\Extensions\4kzuptvv.hsg\Templates\ContextsToImport%
- "16.0_5e517fbc" and "4kzuptvv.hsg" folders were generated dynamically at installation time. So in your case these will be other names.
- %appdata\Local\Microsoft\VisualStudio\16.0_5e517fbc\Extensions\4kzuptvv.hsg\Templates\ContextsToImport%
- copy "aspnetforphpchckdbcontext.json" file in a temporary place where it will be easy to open with "Open File"-Dialog
- Suppose, it'll be "C:\Development"-folder
- So, new file name with a path will be "C:\Development\aspnetforphpchckdbcontext.json"
- This file will be used in the next steps
- Suppose, it'll be "C:\Development"-folder
Create the folder for Security ModelViews
- With Visual Studion under projects which are used for ModelViews we create new folder.
- In our solution we use Dm03Views-project for ModelViews
- "AspNetForPhp" will be the name of the folder for out temporary classes
- In our solution we use Dm03Views-project for ModelViews
Import Security ModelViews definitions
- With Visual Studion right click "AspNetForPhp"-folder of the Dm01Entity-project and run #2 ViewModelViews Wizard
- On the first page click "Next"-button
- On the second page select "aspnetforphpchckdbcontext" and click "Next"-button
- On the third page select any security entity generated before and click "Next"-button
- for instance aspnetdashboard
- On the fourth page click "Import all"-button
- In the Warning dialog click "Yes"-button
-
In the File Open dialog select "C:\Development\aspnetforphpchckdbcontext.json" click "Open"-button
-
In the Information dialog click "Ok"-button
- Close the Wizard