Starts in:
2 DAYS
5 HRS
45 MIN
46 SEC
Starts in:
2 D
5 H
45 M
46 S
Open Closed

angular proxy generator for IFormCollection type generate any<string, StringValues> with compilation errors #7816


User avatar
0
icoretchi created

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • Having controller parameter type IFormCollection:
  • generate proxy: abp generate-proxy -t ng
  • result will be:
  • which is: any&lt;string, StringValues>
  • and as a result we'll have compilation errors
  • Suggestion: generate just as any and everything will be fine.

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please don't use IFormCollection as the controller and Application service's parameter.

    You can use a DTO to bind the form parameters.

  • User Avatar
    0
    icoretchi created

    Hi,

    I am forced to use it, because of third-party libraries that I need. It's not a big problem of course. I am just removing the <string, StringValues>. It was just a suggestion to generate IFormCollection as any.

    Cheers

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06