wpf对数据库的缺点 [英] Disadvantage of wpf on database

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

问题描述

wpf在sql server 2005和visual studio 2012 Express中的水晶报告有什么缺点?

解决方案

没有缺点,原因很简单: WPF与数据库无关。在.NET中,人们几乎总是使用ADO.NET。可以使用带或不带WFP的ADO.NET,带或不带ADO.NET的WPF。



不仅问题没有意义,而且你的想法作为开发人员对您来说很危险。这意味着你很难理解一个基本原则:关注点分离



请参阅:



http://en.wikipedia.org/wiki/Separation_of_concerns [ ^ ];



http://en.wikipedia.org/wiki/ADO.NET [ ^ ],

http://msdn.microsoft.com/en-us/library/aa286484.aspx [ ^ ];



http://en.wikipedia.org/wiki/Windows_Presentation_Foundation [ ^ ];

http://msdn.microsoft.com/en-us/library/ms754130.aspx [ ^ ]。



此外,用户界面非常好代码的特殊方面。是应该尽可能分开。为了了解现有方法,我建议学习以下架构模式 http: //en.wikipedia.org/wiki/Architectural_pattern_(computer_science) [ ^ ]):



MVVM - 模型视图模型,

http://en.wikipedia.org/wiki/Model_View_ViewModel [ ^ ],



MVC - 模型 - 视图 - 控制器,

http://en.wikipedia.org/wiki/Model-view-controller [< a href =http://en.wikipedia.org/wiki/Model-view-controllertarget =_ blanktitle =New Window> ^ ]),



MVA - 模型 - 视图-Adapter,

http://en.wikipedia.org/wiki/Model-view -adapter [ ^ ],< br $>


MVP - 模型 - 视图 - 演示者,

http://en.wikipedia.org/wiki/Model-view-presenter [ ^ ]。

-SA


没什么。 WPF是一种与数据库访问完全无关的表示技术。


WPF没有这样的缺点 - 这取决于你想要做什么。

使用WPF构建Web应用程序可能有点棘手。



Crystal Reports - 我不认为任何快速版本都安装了水晶报告。

what are the disadvantage of wpf on sql server 2005 and crystal reports in visual studio 2012 express?

解决方案

No disadvantages, by one simple reason: WPF has nothing to do with databases. In .NET, people almost always work with ADO.NET. One can use ADO.NET with or without WFP, and WPF with or without ADO.NET.

Not only the question makes no sense, but your thinking is dangerous for you as a developer. It means that you hardly understand one basic principle: separation of concerns.

Please see:

http://en.wikipedia.org/wiki/Separation_of_concerns[^];

http://en.wikipedia.org/wiki/ADO.NET[^],
http://msdn.microsoft.com/en-us/library/aa286484.aspx[^];

http://en.wikipedia.org/wiki/Windows_Presentation_Foundation[^];
http://msdn.microsoft.com/en-us/library/ms754130.aspx[^].

Also, the UI is a very special aspect of code. Is should be separated as well as possible. To get an idea of existing approaches, I would advise to learn the following architectural patterns (http://en.wikipedia.org/wiki/Architectural_pattern_(computer_science)[^]):

MVVM — Model View View Model,
http://en.wikipedia.org/wiki/Model_View_ViewModel[^],

MVC — Model-View-Controller,
http://en.wikipedia.org/wiki/Model-view-controller[^]),

MVA — Model-View-Adapter,
http://en.wikipedia.org/wiki/Model–view–adapter[^],

MVP — Model-View-Presenter,
http://en.wikipedia.org/wiki/Model-view-presenter[^].
—SA


Nothing. WPF is a presentation technology that has absolutely nothing to do with database access.


There are no disadvantages of WPF as such - it depends on what you are trying to do.
Building a web app with WPF may be slightly tricky.

Crystal Reports - I don''t think crystal reports are installed in any express editions.


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

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