-
Notifications
You must be signed in to change notification settings - Fork 333
Shallow merge
chaowlert edited this page Apr 13, 2019
·
1 revision
By default, Mapster will recursively map nested objects (deep copy). You can do shallow copying by setting ShallowCopyForSameType
to true
.
TypeAdapterConfig<TSource, TDestination>
.NewConfig()
.ShallowCopyForSameType(true);
By default, Mapster will map all properties, even source properties containing null values. You can copy only properties that have values (merge) by using IgnoreNullValues
method.
TypeAdapterConfig<TSource, TDestination>
.NewConfig()
.IgnoreNullValues(true);
- Configuration
- Config inheritance
- Config instance
- Config location
- Config validation & compilation
- Config for nested mapping
- Custom member matching logic
- Constructor mapping
- Before & after mapping
- Setting values
- Shallow & merge mapping
- Recursive & object references
- Custom conversion logic
- Inheritance