使用SQL作为数据库的WPF MVVM项目中Modal类的实际用途是什么。 [英] What is the actual use of Modal classes in WPF MVVM project using SQL as the database.

查看:60
本文介绍了使用SQL作为数据库的WPF MVVM项目中Modal类的实际用途是什么。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在MVVM中,Modal的实际用途是什么。我使用SQL作为我的数据库。



在我的项目中,Modal课程如何帮助我。我读了很多例子,因为我是MVVM的初学者,我无法理解这个想法。



有人可以用更简单的方式解释它,以便新手可以使用SQL作为数据库来了解在WPF MVVM项目中实际使用Modal类的想法。







提前致谢。



Rahul

Hi,

In MVVM, what is the actual use of a Modal. I am using SQL as my database.

How will the Modal classes help me in anyway in my project. I read many examples and since I am a beginner here in MVVM, I couldn''t get the idea behind.

Can some one explain it in a simpler way so that a newbie can get the idea of the actual use of Modal classes in WPF MVVM project using SQL as the database.



Thanks in advance.

Rahul

推荐答案

模型类充当数据的占位符。

viewmodel填充这些模型。

每当模型发生变化时,viewmodel会通知UI由于数据的变化需要刷新它。
Model classes act as the placeholder for your data.
The viewmodel populates these models.
Whenever, there are changes to the model, the viewmodel notifies the UI that it needs to be refreshed due to change in data.


这篇关于使用SQL作为数据库的WPF MVVM项目中Modal类的实际用途是什么。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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