-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlomapper.html
More file actions
90 lines (68 loc) · 3.17 KB
/
lomapper.html
File metadata and controls
90 lines (68 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<h1>RSCG nr 265 : lomapper</h1>
<h2>Info</h2>
Nuget : <a href="https://www.nuget.org/packages/lomapper/" target="_blank">https://www.nuget.org/packages/lomapper/</a>
<p>You can find more details at : <a href="https://github.com/jdtoon/lomapper" target="_blank"> https://github.com/jdtoon/lomapper</a></p>
<p>Author :Junaid Desai</p>
<p>Source: <a href="https://github.com/jdtoon/lomapper" target="_blank">https://github.com/jdtoon/lomapper</a> </p>
<h2>About</h2>
Generate 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/lomapper/" target="_blank">lomapper</a> in the csproj
</h3>
<img src="images/lomapper/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/lomapper/csFiles/Program.cs.png" width="580" height="580" />
<hr />
<br />
I have <b>coded</b> the file Person.cs
<br />
<img src="images/lomapper/csFiles/Person.cs.png" width="580" height="580" />
<hr />
<br />
I have <b>coded</b> the file PersonDto.cs
<br />
<img src="images/lomapper/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 Extensions.Generated.cs
<br />
<img src="images/lomapper/generated/Extensions.Generated.cs.png" width="580" height="580" />
<br />
The file <i>generated</i> is LightweightObjectMapper.PreCodes.LightweightObjectMapperPreCodes.cs
<br />
<img src="images/lomapper/generated/LightweightObjectMapper.PreCodes.LightweightObjectMapperPreCodes.cs.png" width="580" height="580" />
<br />
The file <i>generated</i> is LightweightObjectMapper.PreCodes.PredefinedSpecialTypeMapping.cs
<br />
<img src="images/lomapper/generated/LightweightObjectMapper.PreCodes.PredefinedSpecialTypeMapping.cs.png" width="580" height="580" />
<br />
The file <i>generated</i> is LOMMapExtensions_mapperDemo_Person.g.cs
<br />
<img src="images/lomapper/generated/LOMMapExtensions_mapperDemo_Person.g.cs.png" width="580" height="580" />
<br />
The file <i>generated</i> is PredefinedSpecialTypeMapping.Generated.cs
<br />
<img src="images/lomapper/generated/PredefinedSpecialTypeMapping.Generated.cs.png" width="580" height="580" />
<br />
The file <i>generated</i> is UserMapper.g.cs
<br />
<img src="images/lomapper/generated/UserMapper.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/lomapper'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/lomapper
</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>