Comments (5)
My use case is for system/calculated fields. That I do not want the users to modify. But I do want to show them those fields.
from mapperly.
Relates to #585. I'm not sure about configuring mappings on the entities themselves. With the current approach all configuration of the mapper is visible within its class.
from mapperly.
Yea - it is related. But in my scenario, using the current approach leads to compiler warnings as I am using MapDerivedType.
The ignored fields are only going to be present in one of the child classes.
For example, I want to ignore Risk property in the Company class. But that does not exist in Contact, that will throw a warning.
from mapperly.
Currently configuration is not supported on methods using MapDerivedType
(see also #910). You would need to configure the ignores on a mapping method for each mapping individually.
from mapperly.
Also related to #585.
from mapperly.
Related Issues (20)
- Mapperly won't include renamed collection property HOT 4
- Using AggressiveInlining for generated mapping methods HOT 9
- Computed read-only properties causing RMG066 warning HOT 2
- Generator 'MapperGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. HOT 13
- Queryable projections: Inline user-implemented mapping expressions from different file HOT 3
- Generic Existing Object Mapping HOT 5
- CS0618 Obsolete member fails build when TreatWarningsAsErrors is set HOT 1
- before/ after map can't work well with IQueryable projections HOT 1
- Merging two objects into a new target instance HOT 1
- Add support for mapping method parameters to the target type properties HOT 2
- NullReferenceException due to uninitialized nested property object
- Source generator slowing down build
- Guid and Timespan causing warning on maps HOT 2
- Property with private or internal setter are not mapped HOT 3
- Support for mapping enums with different string naming conventions HOT 1
- Pass additional parameters to property mapper methods HOT 1
- Allow constant strings with `MapEnumValueAttribute` when mapping an enum from/to a string.
- Existing target object mappers do not nest as expected HOT 1
- Issue with Mapping `ICollection` Between .NET 8.0 and .NET Standard 2.0: Unexpected `null` Handling HOT 8
- Incorrect nullable handling with implicit operators
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapperly.