Generate viewmodel from model?

I am currently writing viewmodels for my (WPF / C #) application.

I need to copy and paste a lot. There is no way to generate a view model from a model, for example, generating a model from a database?

I did not find anything about this on the net ...

+3
source share
2 answers

Take a look at Karl Shifflet XAML Power Toys . This is a Visual Studio plugin that includes various helpers for developing WPF or Silverlight applications. One of the features is exactly what you are looking for:

  • ViewModel - VB.NET #, ViewModel, . ViewModel.
+1
+4

Source: https://habr.com/ru/post/1720271/


All Articles