WPF MVVM以SQL Server作为数据库的示例 [英] WPF MVVM Example with SQL server as the database

查看:115
本文介绍了WPF MVVM以SQL Server作为数据库的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我完全是WPF和MVVM的初学者。你能不能给我一个关于WPF MVVM的小而简单的例子。



我谷歌了,发现了很多文章,我无法彻底了解这些文章。



我在阅读一些关于WPF数据绑定的文章时注意到了MVVM的概念,我感兴趣。



由于我是初学者,我以为我会用MVVM开始它并且我没有幸运地得到一些简单的例子。



BTW,我的数据库是在SQL中。我正在寻找一个WPF MVVM模式示例,它使用SQL Server获取和设置数据。



请提供一个简单的数据库访问示例。





提前谢谢

解决方案

这是一篇很好的文章,其中包含WPF和MVVW上的示例代码 WPF / MVVM快速入门教程 [ ^ ]

然后按照说明使用它用于数据库访问使用WPF MVVM进行数据库访问 [ ^ ]

这两篇文章都提供了您要检查的示例代码


    推荐 构建 企业 应用程序  with   Windows  演示文稿 基础    模型 查看  ViewModel  模式  publish   by   Microsoft 

http: // shop.oreilly.com/product/0790145309686.do#tab_04_0

可以 查找 来源 代码 此处

http: // examples.oreilly.com/9780735650923-files /


Hi,

I am totally a beginner in WPF and MVVM. Can you please give me a small and simple example on WPF MVVM.

I Google -ed and found so many articles which I could not get in to my head thoroughly.

I noticed the concept of MVVM while reading some article about WPF Data Binding and I got interested.

Since I am a beginner, I thought I would start it with MVVM and I was not lucky enough to get hold of some simple examples.

BTW, my database is in SQL. I am looking for a WPF MVVM pattern example which gets and sets data with SQL Server.

Please provide a simple database access example.


Thanks in advance

解决方案

Here is a good article with sample code on WPF and MVVW WPF/MVVM Quick Start Tutorial[^]
Then follow that up with using it for database access Using WPF MVVM for Database Access[^]
Both articles provide sample code for you to examine


I would recommend Building Enterprise Applications with Windows Presentation Foundation and the Model View ViewModel Pattern publish by Microsoft.

http://shop.oreilly.com/product/0790145309686.do#tab_04_0

you can find the source code here

http://examples.oreilly.com/9780735650923-files/


这篇关于WPF MVVM以SQL Server作为数据库的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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