MVVM [英] MVVM

查看:64
本文介绍了MVVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有人,

任何人都可以给我一个 MVVM 中数据流的最佳示例 项目体系结构.使用SQL数据库.

Please anybody can give me a best example of data flow in MVVM project architecture . using SQL database .

如何在ViewMode和Mode之间建立关系或数据流,以及如何在Model类的View端显示数据.

How to relation create or data flow between ViewMode and Mode And How to data show on View side from Model classes.

请给我发送任何最好的例子.

Please send me any best example.

谢谢

Aniruddha acharya

Aniruddha acharya

A.Acharya对我们的反馈在Windows Store中开发和推广您的应用程序,如果有帮助,请记住将其标记为答案,如果没有帮助,则将其取消标记.

A.Acharya Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if they help and unmark them if they provide no help.

推荐答案

MVVM是用户界面设计模式,与数据库或SQL无关.连接到数据库的任何类或服务都属于MVVM中的模型.

MVVM is a user interface design pattern that has nothing to do with databases nor SQL. Any class or service that connects to a database belongs to the model in MVVM.

视图绑定到视图模型,并且视图模型保留对该模型的引用.该模型可以是实体类或服务,也可以是某种其他类型的依赖项.请参考MSDN,以获取有关该模式及其全部含义的更多信息: https://msdn.microsoft.com/en-us/library/hh848246.aspx

The view binds to the view model and the view model keeps a reference to the model. The model may be a entity class or a service or some other kind of dependency. Please refer to MSDN for more information about the pattern and what it is all about: https://msdn.microsoft.com/en-us/library/hh848246.aspx

如果您正在寻找示例,以下链接也将有所帮助:

The following links should also be helpful if you are looking for examples:

WPF和MVVM的简单问题: https://social.msdn.microsoft.com/Forums/vstudio/zh-CN/7de44362-8b88-4292-b4ee-0385c3b34d7d/im只是在寻找一个简单的vb-net-mvvm-sample-wpf?forum = wpf
实施模型-视图-视图模型模式: https://msdn.microsoft.com/zh-CN/library/ff798384.aspx
了解MVVM设计模式的基础: https://blogs.msdn.microsoft.com/msgulfcommunity/2013/03/13/understanding-the-basics-of-mvvm-design-pattern/

Simple problem with WPF and MVVM: https://social.msdn.microsoft.com/Forums/expression/en-US/9bdd6c29-dcab-4855-8676-ec96c338c984/simple-problem-with-wpf-and-mvvm?forum=wpf
I'm just looking for a simple VB .NET MVVM sample (WPF): https://social.msdn.microsoft.com/Forums/vstudio/en-US/7de44362-8b88-4292-b4ee-0385c3b34d7d/im-just-looking-for-a-simple-vb-net-mvvm-sample-wpf?forum=wpf
Implementing the Model-View-ViewModel Pattern: https://msdn.microsoft.com/en-us/library/ff798384.aspx
Understanding the basics of MVVM design pattern: https://blogs.msdn.microsoft.com/msgulfcommunity/2013/03/13/understanding-the-basics-of-mvvm-design-pattern/

希望有帮助.

请记住,通过将有用的帖子标记为答案来关闭话题,然后在遇到新问题时开始新话题.请不要在同一线程中问几个问题.

Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.


这篇关于MVVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆