You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
it is not a problem, but a new feature.
EF Core in c# let us map database table to private fields without a setter property.
destination class only exposes a public getter. this feature in EF COre is called backing field.
we need such a feature in automapper in typescript for pojos or classes too .
Describe the solution you'd like
in mapping configuration we need a new method called "forPrivateMember" or something like that.
it could be an alias for "forMember" method, the difference is that, the new name makes more sense, it could also be a completely new method that writes to private field of destination class/pojo.
for this true for source too. a new method called "mapFromPrivateField" or something like that, it can read from private field of source class/pojo.
Describe alternatives you've considered
No response
Additional context
more about this feature in EF Core documentation is here this page shows use case of this feature too.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
it is not a problem, but a new feature.
EF Core in c# let us map database table to private fields without a setter property.
destination class only exposes a public getter. this feature in EF COre is called backing field.
we need such a feature in automapper in typescript for pojos or classes too .
Describe the solution you'd like
in mapping configuration we need a new method called "forPrivateMember" or something like that.
it could be an alias for "forMember" method, the difference is that, the new name makes more sense, it could also be a completely new method that writes to private field of destination class/pojo.
for this true for source too. a new method called "mapFromPrivateField" or something like that, it can read from private field of source class/pojo.
Describe alternatives you've considered
No response
Additional context
more about this feature in EF Core documentation is here
this page shows use case of this feature too.
The text was updated successfully, but these errors were encountered: