- ABP Framework version: v4.3.3
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
We need Entity Max and Min Length constants which we define in Domain.Shared\***Consts.cs
files on Angular to be generated via generate-proxy. For now we should change same info both aspnet-core and angular projects every time when we make a change. Is there a way to generate this constants on Angular side via generate-proxy?
3 Answer(s)
-
0
***Consts.cs
files are not API Controllers and they don't have any endpoints. Proxy generation generates code fromswagger.json
. So if you expose your consts with a Controller, proxy generation will be able to generate that endpoint. -
0
-
0
Hello,
Proxy generation isn't about validation. What proxy-generation does is to create services and DTOs in your angular application to make it easier to make requests to the backend. Suite, on the other hand, creates entity crud pages as well as proxies. And validation is being handled on the component rather than the service. You can use the suite to generate your entities.