Base solution for your next web application
Open Closed

PowerTools should generate Partial classes #11180


User avatar
1
jasenfici created

Hi,

I think I asked this one years ago but is there any reason we can't have the PowerTools app generate class that are marked as Partial?

This would make life soooo much better when it comes to editing or extending the auto-generated code. We could just house our modifications, extensions, etc in separate files.

jasen


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jasenfici

    Yes, this has been asked a few times by other people as well. At the moment, you can modify templates as explained here to achieve that. We will add this feature to our roadmap.

    Thanks,

  • User Avatar
    0
    jasenfici created

    Hi ... that link just shows how to change the code that PowerTools creates, not a mechanism for maintaining all of the inevitiable additions and changes we have to make to the class after the fact.

    Can't wait for partial classes.. hope it comes soon. It's been a while, as you mentioned.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jasenfici

    I will share the related issue here as well when we plan it for the next release.