Closed stefanMinch3v closed 8 months ago
This sounds like business logic which should actually not happen in an object mapper.
You should be able to implement this either by using user-implemented mapping method for the conversion from DateTime
to DateTime
or before-/after-map.
Thank you, will take a look for a custom implementation
We have a multitenant app where tenants have different time zones stored in their app settings. For example a CustomerDb object has NextPayingDate which is UTC stored in the database, so whenever we pick the Customer with the NextPayingDate (UTC) from EntityFramework we have to map it to the Settings where the specific time zone is located. Therefore it comes the need if I can do something similar to AutoMapper with IValueConverter on the fly, whenever there is a map between Dates it uses the Tenant specific TimeZone. Is it possible to do the same with Mapperly?
Example