-
-
Notifications
You must be signed in to change notification settings - Fork 6
firist #392
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
firist #392
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,5 +38,6 @@ public enum Category | |
| StateMachine=33, | ||
| Console=34, | ||
| Async=35, | ||
| MVC=36, | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
|
|
||
| <h1>RSCG nr 216 : SG4MVC</h1> | ||
|
|
||
| <h2>Info</h2> | ||
| Nuget : <a href="https://www.nuget.org/packages/SG4MVC/" target="_blank">https://www.nuget.org/packages/SG4MVC/</a> | ||
|
|
||
| <p>You can find more details at : <a href="https://github.com/SG4MVC/SG4MVC" target="_blank"> https://github.com/SG4MVC/SG4MVC</a></p> | ||
|
|
||
| <p>Author :Mark Flanagan</p> | ||
|
|
||
| <p>Source: <a href="https://github.com/SG4MVC/SG4MVC" target="_blank">https://github.com/SG4MVC/SG4MVC</a> </p> | ||
|
|
||
| <h2>About</h2> | ||
|
|
||
| Generate strong typed HTML helpers for ASP.NET MVC projects. | ||
|
|
||
| <h2> | ||
| How to use | ||
| </h2> | ||
| <h3> | ||
| Add reference to the <a href="https://www.nuget.org/packages/SG4MVC/" target="_blank">SG4MVC</a> in the csproj | ||
| </h3> | ||
| <img src="images/SG4MVC/MVCDemo.csproj.png" width="580" height="580" /> | ||
|
|
||
| <h3>This was for me the <b>starting</b> code</h3> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file Program.cs | ||
| <br /> | ||
| <img src="images/SG4MVC/csFiles/Program.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
| <h3>And here are the <i>generated</i> files</h3> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is MVC.cs | ||
| <br /> | ||
| <img src="images/SG4MVC/generated/MVC.cs.png" width="580" height="580" /> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is MVCDemo_Controllers_HomeController.generated.cs | ||
| <br /> | ||
| <img src="images/SG4MVC/generated/MVCDemo_Controllers_HomeController.generated.cs.png" width="580" height="580" /> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is MVCPages.cs | ||
| <br /> | ||
| <img src="images/SG4MVC/generated/MVCPages.cs.png" width="580" height="580" /> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is Sg4Mvc.generated.cs | ||
| <br /> | ||
| <img src="images/SG4MVC/generated/Sg4Mvc.generated.cs.png" width="580" height="580" /> | ||
|
|
||
| <p> | ||
| You can download the code and this page as pdf from | ||
| <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/SG4MVC'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/SG4MVC | ||
| </a> | ||
| </p> | ||
|
|
||
|
|
||
| <p> | ||
| You can see the whole list at | ||
| <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG | ||
| </a> | ||
| </p> | ||
|
|
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||
| { | ||||||
| "generator":{ | ||||||
| "name":"SG4MVC", | ||||||
| "nuget":[ | ||||||
| "https://www.nuget.org/packages/SG4MVC/" | ||||||
| ], | ||||||
| "link":"https://github.com/SG4MVC/SG4MVC", | ||||||
| "author":"Mark Flanagan", | ||||||
| "source":"https://github.com/SG4MVC/SG4MVC" | ||||||
| }, | ||||||
| "data":{ | ||||||
| "goodFor":["Generate strong typed HTML helpers for ASP.NET MVC projects."], | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix wording: “strong typed” → “strongly-typed”. User-facing description; correct the grammar. - "goodFor":["Generate strong typed HTML helpers for ASP.NET MVC projects."],
+ "goodFor":["Generate strongly-typed HTML helpers for ASP.NET MVC projects."],📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "csprojDemo":"MVCDemo.csproj", | ||||||
| "csFiles":["Program.cs"], | ||||||
| "excludeDirectoryGenerated":["Microsoft.CodeAnalysis.Razor.Compiler"], | ||||||
| "includeAdditionalFiles":[""] | ||||||
| }, | ||||||
| "links":{ | ||||||
| "blog":"", | ||||||
| "video":"" | ||||||
| } | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Runtime helpers used by code generated by Sg4Mvc.Generator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
❓ Verification inconclusive
New enum value MVC=36: looks good—verify downstream handling
Addition is consistent with numbering. Please confirm any switch/case mappings or UI filters that consume Category include MVC.
Run:
Expected: Any switch over Category also has a case for MVC; at least one reference to Category.MVC exists where needed.
🏁 Script executed:
Length of output: 113
🏁 Script executed:
Length of output: 79
Handle new Category.MVC in downstream logic
No occurrences of
Category.MVCfound in switch‐case statements or other code paths—add and verifycase Category.MVC:in all switch blocks, update any UI filters, serialization, or mappings that consumeCategoryto include the new MVC value.🤖 Prompt for AI Agents