Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate partial controller classes #7

Closed
kevinkuszyk opened this issue Feb 6, 2015 · 1 comment
Closed

Generate partial controller classes #7

kevinkuszyk opened this issue Feb 6, 2015 · 1 comment
Milestone

Comments

@kevinkuszyk
Copy link
Member

We need to generate partial controller classes to hold the view and action name constants.

@wwwlicious
Copy link
Contributor

I use the ControllerRewriter to help build a list of the Controller class SynxtaxNodes that I need to build
Example here

This outputs all the controller syntaxnode information which I can then pass to a generator and cycle through to generate each class and methods, derived class etc
Example here

I've gone for a fixed generated file in a subfolder called R4MVC located in the directory of the first controller in it's list. The file contains all the generated code as this makes it easy to filter out of the ControllerRewriter and reduces the risk of orphans from removed or changed code as the file is generated fresh every time without seeming like it affects perf too much.

@kevinkuszyk kevinkuszyk mentioned this issue Feb 6, 2015
artiomchi added a commit to artiomchi/R4MVC that referenced this issue Jun 1, 2017
+ Added the ActionResult implementation class
+ Added parameterless method implementations in the partial controller (one of the last things for T4MVC#7)
@kevinkuszyk kevinkuszyk added this to the alpha1 milestone Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants