062 Web Api services for Lookup resource of PhbkEmployeeView - chempkovsky/CS82ANGULAR GitHub Wiki

Notes

  • We need to generate each Web Api service twice. The first time is for modeling. (The Wizard's repo for PhbkDbContext will be updated). The second time is for production. (The Wizard's repo for LpEmpPhBkContext will be updated). We can not copy/paste from one repo to another. Entities declared for PhbkDbContext-repo differ from those which are defined for LpEmpPhBkContext-repo. Some foreign keys for entities of LpEmpPhBkContext-repo were removed.

Steps required to accomplish the task

  • We do not describe step by step instructions
    • please repeat the steps similar to those described in the article 041.

Web Api Services for Modeling repo

  • LpPhBkControllers is a destination project
    • Controllers is a destination folder
  • PhBkContext- is a repo Dbcontext to generate the classes
  • DefaultWebApiService.Core.cs.t4 is a t4 script

Web Api Service for LpdEmpLastNameView

  • We do not describe step by step instructions
  • the settings are as follows:
Click to show the picture

project structure

Web Api Service for LpdEmpFirstNameView

  • We do not describe step by step instructions
  • the settings are as follows:
Click to show the picture

project structure

Web Api Service for LpdEmpSecondNameView

  • We do not describe step by step instructions
  • the settings are as follows:
Click to show the picture

project structure

Web Api Service for LprEmployee01View

  • We do not describe step by step instructions
  • the settings are as follows:
Click to show the picture

project structure

Web Api Service for LprEmployee02View

  • We do not describe step by step instructions
  • the settings are as follows:
Click to show the picture

project structure

Web Api Services for production

  • LpPhBkControllers is a destination project
    • Controllers is a destination folder
  • LpEmpPhBkContext- is a repo Dbcontext to generate the classes
  • DefaultWebApiService.Core.cs.t4 is a t4 script

Web Api Service for production LpdEmpLastNameView

Web Api Service for production LpdEmpFirstNameView

Web Api Service for production LpdEmpSecondNameView

Web Api Service for production LprEmployee01View

Web Api Service for production LprEmployee02View

⚠️ **GitHub.com Fallback** ⚠️