418.C WebApi services and Typescript classes for Lookup Resource of ABP framework applications - chempkovsky/CS82ANGULAR GitHub Wiki
- Our goal is to regenerate
SForm typescript classes for PhbkDivision-entity.
- For
PhbkDivision-entity all modeling information is in the file:
src.rupbes.firstapp.EntityFrameworkCore.rupbes.firstapp.EntityFrameworkCore.csproj.rupbes.firstapp.EntityFrameworkCore.firstappDbContext.json
- To generate production code we must use
LpPhbkDbContext. For this DbContext all modeling information is in the file:
src.rupbes.firstapp.EntityFrameworkCore.rupbes.firstapp.EntityFrameworkCore.csproj.rupbes.firstapp.EntityFrameworkCore.LpPhbkDbContext.json
- So, at first we generate
c#-code and Typescript-code for firstappDbContext-DbContext
- at second we regenerate
c#-code and Typescript-code for LpPhbkDbContext-DbContext
- Here is preliminary code that must be generated using
firstappDbContext-DbContext:
- C#: WebApi services for
LpdDivision, LprDivision01, LprDivision02
- Typecript:
01100-Interfaces.json-batch script for LpdDivision, LprDivision01, LprDivision02
- Typecript:
01400-AbpWebApiService.json-batch script for LpdDivision, LprDivision01, LprDivision02
- Here is production ready code that must be regenerated using
LpPhbkDbContext-DbContext:
- C#: WebApi services for
LpdDivision, LprDivision01, LprDivision02
- Typecript:
01100-Interfaces.json-batch script for LpdDivision, LprDivision01, LprDivision02
- Typecript:
01400-AbpWebApiService.json-batch script for LpdDivision, LprDivision01, LprDivision02
- And finally using
firstappDbContext-DbContext:
- Typecript: regenerate
01400-AbpWebApiService.json-batch script for PhbkDivisionDto
- Typecript: regenerate
01420-SForm.abp.json-batch script for PhbkDivisionDto