简体   繁体   中英

Winforms MVC code generation similar to Ruby on Rails

I work for a company that has a complex WinForms application that I would like to help refactor, but it is going to be a daunting task unless some standards are decided upon and we find a way to automate the process a bit. Since I am a huge Ruby on Rails fan, I was hoping that there was something similar in the WinForms development environment that was similar to the scaffold/controller/model generators in Rails. My thought that was each form and different feature could be understood to the point where generating boilerplate MVC code with the properties and interactions between MVC in place and the functionality more easily transplanted from one place into the corresponding MVC group would be one way to go.

Is anyone aware of any generators out there that do something at least similar to what I want to do here? Any and all suggestions are welcome and appreciated. Thanks!

As a suggestion, look into the MVP pattern before MVC. MVP is more natural for Winforms and Webforms. See this SO post to compare the two. Also, I'll cite this as a source for the "more natural" comment.

PS: This is more of a comment, but I don't have 50 rep :)

As a suggestion too, Refactor major business logic as much as possible. And put in some static classes. So that get ready to move to MVC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM