MVVM using DataTable?

One of our legacy applications runs on VB.net (3 levels), and DataTable is used as a DTO. But we want to convert the application using the WPF architecture, MVVM. Can I implement MVVM using Datatable as a DTO, or should I create classes to represent this data and implement the MVVM architecture.

+5
source share
2 answers

There is nothing in MVVM that precludes using a DataTable / DataSet as your model. "M" in MVVM can be anything. These are V and VM, which are more clearly defined. Just run ViewModel as a mediator for your view and the underlying DataRow. It should not be more complicated than if your model was created by classes of web services.

+2
source

MVVM. ; , datatable, INotify . , , - , ​​ CSLA, , /.

+1

All Articles