Repository navigation
example #539
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
example #539
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Just later | ||
|
|
||
| ## Latest Update : 2026-08-28 => 28 August 2026 | ||
| ## Latest Update : 2026-08-29 => 29 August 2026 | ||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
|
|
||
| { | ||
| "$schema": "https://aka.ms/codetour-schema", | ||
| "title": "Najlot.Map.SourceGenerator", | ||
| "steps": | ||
| [ | ||
| { | ||
| "file": "rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/mapperDemo.csproj", | ||
| "description": "First, we add Nuget [Najlot.Map.SourceGenerator](https://www.nuget.org/packages/Najlot.Map.SourceGenerator/) in csproj ", | ||
| "pattern": "Najlot.Map.SourceGenerator" | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/PersonDTO.cs", | ||
| "description": "File PersonDTO.cs ", | ||
| "pattern": "this is the code" | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/Person.cs", | ||
| "description": "File Person.cs ", | ||
| "pattern": "this is the code" | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/Program.cs", | ||
| "description": "File Program.cs \r\n>> dotnet run --project rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/mapperDemo.csproj ", | ||
| "pattern": "this is the code" | ||
| } | ||
|
|
||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/obj/GX/Najlot.Map.SourceGenerator/Najlot.Map.SourceGenerator.RegistrationGenerator/MapRegistrationExtensions_mapperDemo.g.cs", | ||
| "description": "Generated File 2 from 2 : MapRegistrationExtensions_mapperDemo.g.cs ", | ||
| "line": 1 | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Najlot.Map.SourceGenerator/src/mapperDemo/obj/GX/Najlot.Map.SourceGenerator/Najlot.Map.SourceGenerator.MappingGenerator/mapperDemo_UserMapper.g.cs", | ||
| "description": "Generated File 1 from 2 : mapperDemo_UserMapper.g.cs ", | ||
| "line": 1 | ||
| } | ||
|
|
||
| ], | ||
|
|
||
| "ref": "main" | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
|
|
||
| <h1>RSCG nr 288 : Najlot.Map.SourceGenerator</h1> | ||
|
|
||
| <h2>Info</h2> | ||
| Nuget : <a href="https://www.nuget.org/packages/Najlot.Map.SourceGenerator/" target="_blank">https://www.nuget.org/packages/Najlot.Map.SourceGenerator/</a> | ||
|
|
||
| <p>You can find more details at : <a href="https://github.com/najlot/Map" target="_blank"> https://github.com/najlot/Map</a></p> | ||
|
|
||
| <p>Author :Najlot</p> | ||
|
|
||
| <p>Source: <a href="https://github.com/najlot/Map" target="_blank">https://github.com/najlot/Map</a> </p> | ||
|
|
||
| <h2>About</h2> | ||
|
|
||
| Generates object mapping code at compile time using source generators | ||
|
|
||
| <h2> | ||
| How to use | ||
| </h2> | ||
| <h3> | ||
| Add reference to the <a href="https://www.nuget.org/packages/Najlot.Map.SourceGenerator/" target="_blank">Najlot.Map.SourceGenerator</a> in the csproj | ||
| </h3> | ||
| <img src="images/Najlot.Map.SourceGenerator/mapperDemo.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/Najlot.Map.SourceGenerator/csFiles/Program.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file Person.cs | ||
| <br /> | ||
| <img src="images/Najlot.Map.SourceGenerator/csFiles/Person.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file PersonDTO.cs | ||
| <br /> | ||
| <img src="images/Najlot.Map.SourceGenerator/csFiles/PersonDTO.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
| <h3>And here are the <i>generated</i> files</h3> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is mapperDemo_UserMapper.g.cs | ||
| <br /> | ||
| <img src="images/Najlot.Map.SourceGenerator/generated/mapperDemo_UserMapper.g.cs.png" width="580" height="580" /> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is MapRegistrationExtensions_mapperDemo.g.cs | ||
| <br /> | ||
| <img src="images/Najlot.Map.SourceGenerator/generated/MapRegistrationExtensions_mapperDemo.g.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/Najlot.Map.SourceGenerator'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/Najlot.Map.SourceGenerator | ||
| </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":"Najlot.Map.SourceGenerator", | ||
| "nuget":[ | ||
| "https://www.nuget.org/packages/Najlot.Map.SourceGenerator/" | ||
| ], | ||
| "link":"https://github.com/najlot/Map", | ||
| "author":"Najlot", | ||
| "source":"https://github.com/najlot/Map" | ||
| }, | ||
| "data":{ | ||
| "goodFor":[" Generates object mapping code at compile time using source generators"], | ||
| "csprojDemo":"mapperDemo.csproj", | ||
| "csFiles":["Program.cs","Person.cs","PersonDTO.cs"], | ||
| "excludeDirectoryGenerated":[""], | ||
| "includeAdditionalFiles":[""] | ||
| }, | ||
| "links":{ | ||
| "blog":"", | ||
| "video":"" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Source generator for Najlot.Map that provides automatic mapping code generation with high performance caching. | ||
|
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. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Hyphenate the compound modifier. Change 🧰 Tools🪛 LanguageTool[grammar] ~1-~1: Use a hyphen to join words. (QB_NEW_EN_HYPHEN) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
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.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Escape the arrow in the HTML heading.
HTMLHint reports the raw
>on Line 20. Write=>or remove the arrow so the page passes the HTML check without changing the displayed text.🧰 Tools
🪛 HTMLHint (1.9.2)
[error] 20-20: Special characters must be escaped : [ > ].
(spec-char-escape)
🤖 Prompt for AI Agents
Source: Linters/SAST tools