简体   繁体   中英

MVVM vs. WCF Data Service

I am developing a WPF application and need help in understanding which pattern would be better for data operations. Should I implement an MVVM solution or should I use WCF Data Services? What are the pros and cons for each.

I think you don't understand what is MVVM? And what is WCF Data Services? MVVM is an pattern architecture while WCF Data Services is framework delivered by .Net platform to help you exposing your data via REST architecture using the OData protocol.

In additional, MVVM stands for Model - View - View-Model, and you can use MVVM and WCF Data Services in the same application. Your WCF Data Services will just represent your Model (the first M in MVVM)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM