Repository navigation
Commit e126d92
feat: add RenameProperties to GenerateDtosAttribute
Allows renaming entity properties in generated DTOs via 'EntityProp:DtoProp'
pairs. The generated property uses the DTO name but maps to the entity name
in constructors and projections.
Not yet working in SGF hoist pipeline — needs further investigation into
why the renameMap isn't applied during member creation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6988631 commit e126d92
2 files changed
Lines changed: 44 additions & 8 deletions
File tree
- src
- Facet.Attributes
- Facet/Generators/FacetGenerators
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
189 | 202 | | |
190 | 203 | | |
191 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
482 | 500 | | |
483 | 501 | | |
484 | 502 | | |
| |||
517 | 535 | | |
518 | 536 | | |
519 | 537 | | |
| 538 | + | |
520 | 539 | | |
521 | | - | |
| 540 | + | |
522 | 541 | | |
523 | 542 | | |
524 | 543 | | |
525 | 544 | | |
526 | 545 | | |
527 | | - | |
528 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
529 | 549 | | |
530 | 550 | | |
531 | 551 | | |
532 | 552 | | |
| 553 | + | |
533 | 554 | | |
534 | | - | |
| 555 | + | |
535 | 556 | | |
536 | 557 | | |
537 | 558 | | |
538 | 559 | | |
539 | 560 | | |
540 | | - | |
541 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
542 | 564 | | |
543 | 565 | | |
544 | 566 | | |
| |||
1188 | 1210 | | |
1189 | 1211 | | |
1190 | 1212 | | |
1191 | | - | |
| 1213 | + | |
| 1214 | + | |
1192 | 1215 | | |
1193 | 1216 | | |
1194 | 1217 | | |
| |||
1260 | 1283 | | |
1261 | 1284 | | |
1262 | 1285 | | |
1263 | | - | |
| 1286 | + | |
1264 | 1287 | | |
1265 | 1288 | | |
1266 | 1289 | | |
| |||
0 commit comments