c# - How I can use MVVM with CRUD operations? -


I am trying to understand the basic MVVM design approach, but I do not understand that working with CRUD Where are the best tips to operate?

a. Create a view model with the essence of properties and see how to apply the CRUD methods in this modal?

Create the ViewModels base and then add the attribute for the ObsmableCollections of Viewmodel.

Did you tell me, how can you do this, please !.

With MVVM, the model should have contacts with all business logic and data sources.
will expose your lost data and functionality that is required for viewing

For example if you had a button on your view that an item was removed from the database, on the button view modal An ICommand would be bound for example. Once ICommand implements, to communicate with the model of implementation of this order, make sure that the item has been removed. View MODEL is populated with new data to allow visual updates.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -