feat: Added MapperIgnoreMemberAttribute
Added MapperIgnoreMemberAttribute
Description
Added MapperIgnoreMemberAttribute to allow mapping to be ignored from within a source/target class. This is a small feature as it is meerly a rehashing of the ObsoleteAttribute implementation when it is set to Both, without the configuration due to being explicitly specified.
This will reduce require attribution in bi-directional mappings where you want to explicitly exclude a member from all mappings.
I believe I have updated all required code and tests. I however have not updated to documentation as I am not quite sure where the best place would be for it.
Closes https://github.com/riok/mapperly/issues/585
Checklist
- [x] The existing code style is followed
- [x] The commit message follows our guidelines
- [x] Performed a self-review of my code
- [x] Hard-to-understand areas of my code are commented
- [ ] The documentation is updated (as applicable)
- [x] Unit tests are added/updated
- [x] Integration tests are added/updated (as applicable, especially if feature/bug depends on roslyn or framework version in use)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.33%. Comparing base (
d303198) to head (bb6174e).
Additional details and impacted files
@@ Coverage Diff @@
## main #1143 +/- ##
==========================================
+ Coverage 91.31% 91.33% +0.01%
==========================================
Files 230 230
Lines 7788 7802 +14
Branches 987 989 +2
==========================================
+ Hits 7112 7126 +14
Misses 441 441
Partials 235 235
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Requested changes have now been incorporated and the docs have been updates.
:tada: This PR is included in version 3.5.0-next.2 :tada:
The release is available on:
- GitHub release
-
v3.5.0-next.2
Your semantic-release bot :package::rocket: