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%

picture

  • Then go to "%appdata%\local"

picture

  • 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.

picture

  • 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

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

picture

Import Security ModelViews definitions

  • With Visual Studion right click "AspNetForPhp"-folder of the Dm01Entity-project and run #2 ViewModelViews Wizard

picture

  • On the first page click "Next"-button

picture

  • On the second page select "aspnetforphpchckdbcontext" and click "Next"-button

picture

  • On the third page select any security entity generated before and click "Next"-button
    • for instance aspnetdashboard

picture

  • On the fourth page click "Import all"-button

picture

  • In the Warning dialog click "Yes"-button

picture

  • In the File Open dialog select "C:\Development\aspnetforphpchckdbcontext.json" click "Open"-button

  • In the Information dialog click "Ok"-button

picture

  • Close the Wizard