Dynamic form creation in asp.net c#

前端 未结 4 661
耶瑟儿~
耶瑟儿~ 2021-02-09 09:38

So, I need some input refactoring an asp.net (c#) application that is basically a framework for creating dynamic forms (any forms). From a high level point of view, there is a t

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-09 10:27

    I have a number of similar apps for building dynamic forms that I support.

    There's a whole lot of things you could/could not do & you're right to think hard before throwing away 3 years of testing/development.

    My input for you to consider is to implement a plug-in architecture on top of what you're got. Any custom code for a form goes in the plug-in & the name of this plug-in is stored with the form. When you generate a form, the correct plug-in is called to enhance the base functionality. that way you get to move all the custom code out of the existing library. It should also mean less breaking changes, each plug-in only affects the form it's attached to.

    From that point it'll be easy to refactor the core engine as it's common functionality across all clients & forms.

提交回复
热议问题