Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mapping of data to a ViewModel #53

Open
csharpfritz opened this issue Feb 27, 2022 · 2 comments
Open

Allow mapping of data to a ViewModel #53

csharpfritz opened this issue Feb 27, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@csharpfritz
Copy link
Owner

Introduce configuration to allow mapping from the datasource to a ViewModel, and mapping from the ViewModel to the datasource

Using Automapper may be the preferred technique here

@csharpfritz csharpfritz added enhancement New feature or request help wanted Extra attention is needed labels Feb 27, 2022
@csharpfritz csharpfritz mentioned this issue Feb 27, 2022
4 tasks
@ChristianWeyer
Copy link

Very good idea.
Should we rather refer to them as Data Transfer Objects (DTOs), and not ViewModels?

@csharpfritz
Copy link
Owner Author

I think you're right @ChristianWeyer - in APIs they're DTOs since there is no UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants